summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-17 18:02:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-17 18:02:15 +0300
commit288bda66073faeaa0f329d95b26482a9d2868c34 (patch)
tree41e4801cd513e729d2dc41da21be3d8e158a2999 /protocols
parentb68362e4ca9a176bde960f20dce76822e0a5dd0e (diff)
that hook must be called upon ME_SYSTEM_MODULESLOADED event
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/main.cpp2
-rw-r--r--protocols/VKontakte/src/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/main.cpp b/protocols/FacebookRM/src/main.cpp
index ec84f62346..e53a72310a 100644
--- a/protocols/FacebookRM/src/main.cpp
+++ b/protocols/FacebookRM/src/main.cpp
@@ -67,7 +67,7 @@ int CMPlugin::Load()
{
HookEvent(ME_SYSTEM_MODULELOAD, OnModuleLoaded);
HookEvent(ME_SYSTEM_MODULEUNLOAD, OnModuleLoaded);
- OnModuleLoaded(0, 0);
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnModuleLoaded);
InitIcons();
InitContactMenus();
diff --git a/protocols/VKontakte/src/main.cpp b/protocols/VKontakte/src/main.cpp
index c304f57adb..79dbf4296d 100644
--- a/protocols/VKontakte/src/main.cpp
+++ b/protocols/VKontakte/src/main.cpp
@@ -60,7 +60,7 @@ int CMPlugin::Load()
{
HookEvent(ME_SYSTEM_MODULELOAD, OnModuleLoaded);
HookEvent(ME_SYSTEM_MODULEUNLOAD, OnModuleLoaded);
- OnModuleLoaded(0, 0);
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnModuleLoaded);
InitIcons();
return 0;