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/Twitter/src/chat.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index 733e4aacee..3ede02bae6 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -62,14 +62,14 @@ int CTwitterProto::OnChatOutgoing(WPARAM, LPARAM lParam) break; case GC_USER_PRIVMESS: - { - ptrA text(mir_u2a(hook->ptszUID)); - CallService(MS_MSG_SENDMESSAGE, WPARAM(UsernameToHContact(text)), 0); - } - break; + { + ptrA text(mir_u2a(hook->ptszUID)); + CallService(MS_MSG_SENDMESSAGE, UsernameToHContact(text), 0); + } + break; } - return 0; + return 1; } // TODO: remove nick? -- cgit v1.2.3