From 74d73e1537585bfc4c33892b9ec47dc523af1ce4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 19 Feb 2020 20:28:04 +0300 Subject: if a protocol handles an event, it shall return 1, not 0 --- protocols/JabberG/src/jabber_chat.cpp | 4 ++-- protocols/JabberG/src/jabber_proto.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index e3512d3321..1b07311a7e 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -1368,7 +1368,7 @@ int CJabberProto::JabberGcEventHook(WPARAM, LPARAM lParam) T2Utf roomJid(gch->si->ptszID); JABBER_LIST_ITEM *item = ListGetItemPtr(LIST_CHATROOM, roomJid); if (item == nullptr) - return 0; + return 1; switch (gch->iType) { case GC_USER_MESSAGE: @@ -1408,7 +1408,7 @@ int CJabberProto::JabberGcEventHook(WPARAM, LPARAM lParam) break; } - return 0; + return 1; } ///////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 9129f46ba8..5e67a49b61 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -219,7 +219,6 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) : m_tszSelectedLang = mir_strdup("en"); } - CJabberProto::~CJabberProto() { ConsoleUninit(); -- cgit v1.2.3