summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/chat.cpp
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/Omegle/src/chat.cpp
parent51150937be1bbbe52c764c43dac74fafe3da366e (diff)
if a protocol handles an event, it shall return 1, not 0
Diffstat (limited to 'protocols/Omegle/src/chat.cpp')
-rw-r--r--protocols/Omegle/src/chat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Omegle/src/chat.cpp b/protocols/Omegle/src/chat.cpp
index 7f13e74967..6d96e70d93 100644
--- a/protocols/Omegle/src/chat.cpp
+++ b/protocols/Omegle/src/chat.cpp
@@ -71,7 +71,6 @@ void OmegleProto::UpdateChat(const wchar_t *name, const wchar_t *message, bool a
int OmegleProto::OnChatEvent(WPARAM, LPARAM lParam)
{
GCHOOK *hook = reinterpret_cast<GCHOOK*>(lParam);
-
if (mir_strcmp(hook->si->pszModule, m_szModuleName))
return 0;
@@ -182,7 +181,7 @@ int OmegleProto::OnChatEvent(WPARAM, LPARAM lParam)
break;
}
- return 0;
+ return 1;
}
void OmegleProto::SendChatMessage(std::string text)