summaryrefslogtreecommitdiff
path: root/protocols/IRCG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-22 14:34:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-22 14:34:57 +0300
commit9300399ed59f4d82f5e62f5ef43b752da4dd0735 (patch)
tree3b3454be313297cb33d5e550043217b467915581 /protocols/IRCG
parent1a71e02f8edb73943f3ce7de693c7f3c3e9ebc48 (diff)
EV_PROTO_ONMENU removed
Diffstat (limited to 'protocols/IRCG')
-rw-r--r--protocols/IRCG/src/ircproto.cpp13
-rw-r--r--protocols/IRCG/src/ircproto.h4
-rw-r--r--protocols/IRCG/src/services.cpp2
3 files changed, 2 insertions, 17 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp
index 309e65374d..f4c42f4e80 100644
--- a/protocols/IRCG/src/ircproto.cpp
+++ b/protocols/IRCG/src/ircproto.cpp
@@ -808,16 +808,3 @@ int CIrcProto::SetAwayMsg(int status, const wchar_t* msg)
return 0;
}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-// OnEvent - maintain protocol events
-
-int CIrcProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam)
-{
- switch (eventType) {
- case EV_PROTO_ONMENU:
- InitMainMenus();
- break;
- }
- return 1;
-}
diff --git a/protocols/IRCG/src/ircproto.h b/protocols/IRCG/src/ircproto.h
index 9797574c0a..8947ca68a2 100644
--- a/protocols/IRCG/src/ircproto.h
+++ b/protocols/IRCG/src/ircproto.h
@@ -69,8 +69,7 @@ struct CIrcProto : public PROTO<CIrcProto>
HANDLE GetAwayMsg(MCONTACT hContact) override;
int SetAwayMsg(int m_iStatus, const wchar_t *msg) override;
- int OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam) override;
-
+ void OnBuildProtoMenu(void) override;
void OnContactDeleted(MCONTACT) override;
void OnModulesLoaded() override;
void OnShutdown() override;
@@ -275,7 +274,6 @@ struct CIrcProto : public PROTO<CIrcProto>
// services.cpp
void ConnectToServer(void);
void DisconnectFromServer(void);
- void InitMainMenus(void);
void __cdecl ConnectServerThread(void*);
void __cdecl DisconnectServerThread(void*);
diff --git a/protocols/IRCG/src/services.cpp b/protocols/IRCG/src/services.cpp
index 8b4413ce9d..9881e13ab1 100644
--- a/protocols/IRCG/src/services.cpp
+++ b/protocols/IRCG/src/services.cpp
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "stdafx.h"
-void CIrcProto::InitMainMenus(void)
+void CIrcProto::OnBuildProtoMenu()
{
CMenuItem mi;
mi.root = Menu_GetProtocolRoot(this);