diff options
Diffstat (limited to 'protocols/MinecraftDynmap')
-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); |