diff options
author | James Booth <boothj5@gmail.com> | 2016-08-28 17:27:26 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-08-28 17:27:26 +0100 |
commit | fca59a3110046bc145e5b44dd6b63840c48b5083 (patch) | |
tree | 5ce08fde5f1f204b4b5549785313b88c97643323 /src/xmpp | |
parent | ea9216f05484e7935f7d1772c2788f44fdf52eb7 (diff) | |
download | profani-tty-fca59a3110046bc145e5b44dd6b63840c48b5083.tar.gz |
log_info on private carbons
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/message.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |