diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-19 20:28:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-19 20:28:04 +0300 |
commit | 74d73e1537585bfc4c33892b9ec47dc523af1ce4 (patch) | |
tree | 5b7dcbf23ad5532184785312be2936bc9f44482a /protocols/JabberG/src | |
parent | 51150937be1bbbe52c764c43dac74fafe3da366e (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.cpp | 4 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 1 |
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();
|