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/Sametime/src/conference.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/Sametime') 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) { -- cgit v1.2.3