diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-22 00:55:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-22 00:57:16 +0300 |
commit | d28931ebdfc4ff561d05ab000aee4cbb5ac24d62 (patch) | |
tree | e5cfd83eb231df123a3d744106a4e9b521fba409 /protocols/MinecraftDynmap/src | |
parent | 921f870dd0feec3230a8634abbd85c556e9f3d22 (diff) |
OnEvent(EV_PROTO_ONCONTACTDELETED) => PROTO_INTERFACE::OnContactDeleted
Diffstat (limited to 'protocols/MinecraftDynmap/src')
-rw-r--r-- | protocols/MinecraftDynmap/src/proto.cpp | 15 | ||||
-rw-r--r-- | protocols/MinecraftDynmap/src/proto.h | 5 |
2 files changed, 2 insertions, 18 deletions
diff --git a/protocols/MinecraftDynmap/src/proto.cpp b/protocols/MinecraftDynmap/src/proto.cpp index 0ea1bb8f9c..4fe03a0547 100644 --- a/protocols/MinecraftDynmap/src/proto.cpp +++ b/protocols/MinecraftDynmap/src/proto.cpp @@ -128,18 +128,6 @@ int MinecraftDynmapProto::SetStatus(int new_status) } ////////////////////////////////////////////////////////////////////////////// - -int MinecraftDynmapProto::OnEvent(PROTOEVENTTYPE event,WPARAM wParam,LPARAM lParam) -{ - switch(event) { - case EV_PROTO_ONCONTACTDELETED: - return OnContactDeleted(wParam, lParam); - } - - return 1; -} - -////////////////////////////////////////////////////////////////////////////// // EVENTS INT_PTR MinecraftDynmapProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) @@ -162,10 +150,9 @@ void MinecraftDynmapProto::OnShutdown() SetStatus(ID_STATUS_OFFLINE); } -int MinecraftDynmapProto::OnContactDeleted(WPARAM, LPARAM) +void MinecraftDynmapProto::OnContactDeleted(MCONTACT) { OnLeaveChat(NULL, NULL); - return 0; } ////////////////////////////////////////////////////////////////////////////// diff --git a/protocols/MinecraftDynmap/src/proto.h b/protocols/MinecraftDynmap/src/proto.h index 71c59a6fc9..9979e62ed8 100644 --- a/protocols/MinecraftDynmap/src/proto.h +++ b/protocols/MinecraftDynmap/src/proto.h @@ -44,16 +44,13 @@ public: INT_PTR GetCaps(int type, MCONTACT hContact = NULL) override; int SetStatus(int iNewStatus) override; - int OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam) override; + void OnContactDeleted(MCONTACT) override; void OnModulesLoaded() override; void OnShutdown() override; // Services INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM); - // Events - int __cdecl OnContactDeleted(WPARAM,LPARAM); - // Chat handling int __cdecl OnChatEvent(WPARAM,LPARAM); INT_PTR __cdecl OnJoinChat(WPARAM,LPARAM); |