log_info on private carbons

This commit is contained in:
James Booth
2016-08-28 17:27:26 +01:00
parent ea9216f054
commit fca59a3110
4 changed files with 37 additions and 0 deletions

View File

@@ -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;