From d28931ebdfc4ff561d05ab000aee4cbb5ac24d62 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Apr 2018 00:55:51 +0300 Subject: OnEvent(EV_PROTO_ONCONTACTDELETED) => PROTO_INTERFACE::OnContactDeleted --- protocols/Omegle/src/proto.cpp | 15 +-------------- protocols/Omegle/src/proto.h | 3 +-- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'protocols/Omegle/src') diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp index 80831a9293..37c127f940 100644 --- a/protocols/Omegle/src/proto.cpp +++ b/protocols/Omegle/src/proto.cpp @@ -130,18 +130,6 @@ int OmegleProto::SetStatus(int new_status) return 0; } -////////////////////////////////////////////////////////////////////////////// - -int OmegleProto::OnEvent(PROTOEVENTTYPE event, WPARAM wParam, LPARAM lParam) -{ - switch (event) { - case EV_PROTO_ONCONTACTDELETED: - return OnContactDeleted(wParam, lParam); - } - - return 1; -} - ////////////////////////////////////////////////////////////////////////////// // EVENTS @@ -184,10 +172,9 @@ int OmegleProto::OnOptionsInit(WPARAM wParam, LPARAM) return 0; } -int OmegleProto::OnContactDeleted(WPARAM, LPARAM) +void OmegleProto::OnContactDeleted(MCONTACT) { OnLeaveChat(NULL, NULL); - return 0; } int OmegleProto::UserIsTyping(MCONTACT hContact, int type) diff --git a/protocols/Omegle/src/proto.h b/protocols/Omegle/src/proto.h index 90a114da31..dd81adcaad 100644 --- a/protocols/Omegle/src/proto.h +++ b/protocols/Omegle/src/proto.h @@ -51,7 +51,7 @@ public: int UserIsTyping(MCONTACT hContact, int type) override; - int OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam); + void OnContactDeleted(MCONTACT) override; void OnModulesLoaded() override; void OnShutdown() override; @@ -60,7 +60,6 @@ public: // Events int __cdecl OnOptionsInit(WPARAM, LPARAM); - int __cdecl OnContactDeleted(WPARAM, LPARAM); // Chat handling int __cdecl OnChatEvent(WPARAM, LPARAM); -- cgit v1.2.3