diff options
-rw-r--r-- | src/xmpp/message.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 0bb1d4f6..4147a611 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -146,24 +146,28 @@ _message_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *con xmpp_stanza_t *conference = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_CONFERENCE); if (conference) { _handle_conference(stanza); + return 1; } // XEP-0158: CAPTCHA Forms xmpp_stanza_t *captcha = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_CAPTCHA); if (captcha) { _handle_captcha(stanza); + return 1; } // XEP-0184: Message Delivery Receipts xmpp_stanza_t *receipts = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_RECEIPTS); if (receipts) { _handle_receipt_received(stanza); + return 1; } // XEP-0060: Publish-Subscribe xmpp_stanza_t *event = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_PUBSUB_EVENT); if (event) { _handle_pubsub(stanza, event); + return 1; } _handle_chat(stanza, FALSE); |