about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 17:29:40 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-02 17:32:14 +0200
commit19d9e80a797893ecf5b57622f7c475d78b45f91c (patch)
tree605b4cfeb9a3b7c1c46acd8fe1e73d78d99d2b1e /src/xmpp
parentd9cfa2e48a9798b920c5b528b662d7e7b8e21a0a (diff)
downloadprofani-tty-19d9e80a797893ecf5b57622f7c475d78b45f91c.tar.gz
message.c: Remove handled cases form _handle_chat()
Both cases are tested before entering that function.
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/message.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 4147a611..9309e5c4 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -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