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/VKontakte | |
parent | 51150937be1bbbe52c764c43dac74fafe3da366e (diff) |
if a protocol handles an event, it shall return 1, not 0
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index a5904b7b46..bc39f6cc40 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -455,7 +455,7 @@ int CVkProto::OnChatEvent(WPARAM, LPARAM lParam) CVkChatInfo *cc = GetChatById(gch->si->ptszID);
if (cc == nullptr)
- return 0;
+ return 1;
switch (gch->iType) {
case GC_USER_MESSAGE:
@@ -489,7 +489,7 @@ int CVkProto::OnChatEvent(WPARAM, LPARAM lParam) NickMenuHook(cc, gch);
break;
}
- return 0;
+ return 1;
}
void CVkProto::OnSendChatMsg(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
|