From 56efb1a2982654338cb9b011fae303c70d5fb4a1 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 14 May 2021 16:12:38 +0200 Subject: [PATCH] message: correct type checking Found by DebXWoody. Led to always be true (which still made it work in most cases). --- src/xmpp/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 4f093bcf..b43bf90c 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -167,7 +167,7 @@ _message_handler(xmpp_conn_t* const conn, xmpp_stanza_t* const stanza, void* con _handle_groupchat(stanza); } else if (type && g_strcmp0(type, STANZA_TYPE_HEADLINE) == 0) { _handle_headline(stanza); - } else if (type == NULL || g_strcmp0(type, STANZA_TYPE_CHAT) != 0 || g_strcmp0(type, STANZA_TYPE_NORMAL) != 0) { + } else if (type == NULL || g_strcmp0(type, STANZA_TYPE_CHAT) == 0 || g_strcmp0(type, STANZA_TYPE_NORMAL) == 0) { // type: chat, normal (==NULL) // XEP-0045: Multi-User Chat 8.6 Voice Requests