summaryrefslogtreecommitdiff
path: root/protocols/Sametime
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/Sametime
parent51150937be1bbbe52c764c43dac74fafe3da366e (diff)
if a protocol handles an event, it shall return 1, not 0
Diffstat (limited to 'protocols/Sametime')
-rw-r--r--protocols/Sametime/src/conference.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Sametime/src/conference.cpp b/protocols/Sametime/src/conference.cpp
index ee0a6a35b9..6ff9a1bf89 100644
--- a/protocols/Sametime/src/conference.cpp
+++ b/protocols/Sametime/src/conference.cpp
@@ -280,8 +280,8 @@ void CSametimeProto::TerminateConference(char* name)
int CSametimeProto::GcEventHook(WPARAM, LPARAM lParam) {
GCHOOK* gch = (GCHOOK*)lParam;
-
- if (strcmp(gch->si->pszModule, m_szModuleName) != 0) return 0;
+ if (strcmp(gch->si->pszModule, m_szModuleName) != 0)
+ return 0;
GList *conferences = mwServiceConference_getConferences(service_conference);
for (GList *conf = conferences;conf;conf = conf->next) {
@@ -313,8 +313,7 @@ int CSametimeProto::GcEventHook(WPARAM, LPARAM lParam) {
}
g_list_free(conferences);
-
- return 0;
+ return 1;
}
int CSametimeProto::ChatDeleted(MCONTACT hContact) {