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/SkypeWeb | |
parent | 51150937be1bbbe52c764c43dac74fafe3da366e (diff) |
if a protocol handles an event, it shall return 1, not 0
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_chatrooms.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 990d1d6cee..cdab9bc6cd 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -87,7 +87,7 @@ int CSkypeProto::OnGroupChatEventHook(WPARAM, LPARAM lParam) {
GCHOOK *gch = (GCHOOK*)lParam;
if (!gch)
- return 1;
+ return 0;
if (mir_strcmp(gch->si->pszModule, m_szModuleName) != 0)
return 0;
@@ -129,10 +129,8 @@ int CSkypeProto::OnGroupChatEventHook(WPARAM, LPARAM lParam) if (hContact != NULL)
SendRequest(new InviteUserToChatRequest(chat_id, Contacts[hContact], "User", this));
- {
- mir_cslock lck(m_InviteDialogsLock);
- m_InviteDialogs.remove(&dlg);
- }
+ mir_cslock lck(m_InviteDialogsLock);
+ m_InviteDialogs.remove(&dlg);
}
break;
@@ -200,7 +198,7 @@ int CSkypeProto::OnGroupChatEventHook(WPARAM, LPARAM lParam) }
break;
}
- return 0;
+ return 1;
}
INT_PTR CSkypeProto::OnJoinChatRoom(WPARAM hContact, LPARAM)
|