1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

message.c: Remove handled cases form _handle_chat()

Both cases are tested before entering that function.
This commit is contained in:
Michael Vetter 2020-07-02 17:29:40 +02:00
parent d9cfa2e48a
commit 19d9e80a79

View File

@ -1256,13 +1256,6 @@ _handle_chat(xmpp_stanza_t *const stanza, gboolean is_mam)
return;
}
// ignore handled namespaces
xmpp_stanza_t *conf = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_CONFERENCE);
xmpp_stanza_t *captcha = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_CAPTCHA);
if (conf || captcha) {
return;
}
// some clients send the mucuser namespace with private messages
// if the namespace exists, and the stanza contains a body element, assume its a private message
// otherwise exit the handler