summaryrefslogtreecommitdiff
path: root/plugins/!Deprecated/Skype/src/skype_hooks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!Deprecated/Skype/src/skype_hooks.cpp')
-rw-r--r--plugins/!Deprecated/Skype/src/skype_hooks.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/!Deprecated/Skype/src/skype_hooks.cpp b/plugins/!Deprecated/Skype/src/skype_hooks.cpp
new file mode 100644
index 0000000000..13dc08c95b
--- /dev/null
+++ b/plugins/!Deprecated/Skype/src/skype_hooks.cpp
@@ -0,0 +1,17 @@
+#include "skype.h"
+
+void CSkypeProto::InitHookList()
+{
+ ::HookEvent(ME_SYSTEM_MODULESLOADED, &CSkypeProto::OnModulesLoaded);
+ ::HookEvent(ME_CLIST_PREBUILDCONTACTMENU, &CSkypeProto::PrebuildContactMenu);
+}
+
+void CSkypeProto::InitInstanceHookList()
+{
+ this->HookProtoEvent(ME_OPT_INITIALISE, &CSkypeProto::OnOptionsInit);
+ this->HookProtoEvent(ME_USERINFO_INITIALISE, &CSkypeProto::OnUserInfoInit);
+
+ this->HookProtoEvent(ME_MSG_PRECREATEEVENT, &CSkypeProto::OnMessagePreCreate);
+
+ this->HookProtoEvent(ME_MSG_BUTTONPRESSED, &CSkypeProto::OnTabSRMMButtonPressed);
+}