summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/proto.cpp13
-rw-r--r--protocols/FacebookRM/src/proto.h4
-rw-r--r--protocols/FacebookRM/src/theme.cpp2
3 files changed, 2 insertions, 17 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index e280fbc737..d494385cf4 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -386,19 +386,6 @@ INT_PTR FacebookProto::GetNotificationsCount(WPARAM, LPARAM)
}
//////////////////////////////////////////////////////////////////////////////
-
-int FacebookProto::OnEvent(PROTOEVENTTYPE event, WPARAM wParam, LPARAM lParam)
-{
- switch (event) {
- case EV_PROTO_ONMENU:
- InitMenu();
- break;
- }
-
- return 1;
-}
-
-//////////////////////////////////////////////////////////////////////////////
// EVENTS
INT_PTR FacebookProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam)
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h
index f4a35b48c0..6cef8a3e8a 100644
--- a/protocols/FacebookRM/src/proto.h
+++ b/protocols/FacebookRM/src/proto.h
@@ -126,8 +126,7 @@ public:
int UserIsTyping(MCONTACT hContact, int type) override;
- int OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam) override;
-
+ void OnBuildProtoMenu(void) override;
void OnContactDeleted(MCONTACT) override;
void OnModulesLoaded() override;
void OnShutdown() override;
@@ -166,7 +165,6 @@ public:
void InitPopups();
void InitHotkeys();
void InitSounds();
- void InitMenu();
// Events
int __cdecl OnOptionsInit(WPARAM, LPARAM);
diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp
index 71fb869c95..1e857200d9 100644
--- a/protocols/FacebookRM/src/theme.cpp
+++ b/protocols/FacebookRM/src/theme.cpp
@@ -191,7 +191,7 @@ int FacebookProto::OnPrebuildContactMenu(WPARAM wParam, LPARAM)
return 0;
}
-void FacebookProto::InitMenu()
+void FacebookProto::OnBuildProtoMenu()
{
CMenuItem mi;
mi.position = 201001;