summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-19 20:28:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-19 20:28:04 +0300
commit74d73e1537585bfc4c33892b9ec47dc523af1ce4 (patch)
tree5b7dcbf23ad5532184785312be2936bc9f44482a /protocols/JabberG/src
parent51150937be1bbbe52c764c43dac74fafe3da366e (diff)
if a protocol handles an event, it shall return 1, not 0
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r--protocols/JabberG/src/jabber_chat.cpp4
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.cpp1
2 files changed, 2 insertions, 3 deletions
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();