From fca59a3110046bc145e5b44dd6b63840c48b5083 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 28 Aug 2016 17:27:26 +0100 Subject: log_info on private carbons --- src/xmpp/message.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/xmpp') diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 5ccabdf4..9d80fb1f 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -686,6 +686,11 @@ _handle_carbons(xmpp_stanza_t *const stanza) return TRUE; } + if (g_strcmp0(name, "private") == 0) { + log_info("Carbon received with private element."); + return FALSE; + } + if ((g_strcmp0(name, "received") != 0) && (g_strcmp0(name, "sent") != 0)) { log_warning("Carbon received with unrecognised stanza name: %s", name); return TRUE; -- cgit 1.4.1-2-gfad0