summaryrefslogtreecommitdiff
path: root/plugins/CloudFile
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile')
-rw-r--r--plugins/CloudFile/src/events.cpp8
-rw-r--r--plugins/CloudFile/src/main.cpp4
2 files changed, 4 insertions, 8 deletions
diff --git a/plugins/CloudFile/src/events.cpp b/plugins/CloudFile/src/events.cpp
index 08bbd2974d..010729dddb 100644
--- a/plugins/CloudFile/src/events.cpp
+++ b/plugins/CloudFile/src/events.cpp
@@ -40,17 +40,9 @@ int OnModulesLoaded(WPARAM, LPARAM)
HookEvent(ME_PROTO_ACK, OnProtoAck);
- // options
- HookEvent(ME_OPT_INITIALISE, OnOptionsInitialized);
-
// srfile
HookEvent(ME_FILEDLG_CANCELED, OnFileDialogCanceled);
- HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu);
-
- HookEvent(ME_MSG_WINDOWEVENT, OnSrmmWindowOpened);
- HookEvent(ME_MSG_BUTTONPRESSED, OnSrmmButtonPressed);
-
HookTemporaryEvent(ME_MSG_TOOLBARLOADED, OnSrmmToolbarLoaded);
return 0;
} \ No newline at end of file
diff --git a/plugins/CloudFile/src/main.cpp b/plugins/CloudFile/src/main.cpp
index 3e57d50035..2b9ffd6c2d 100644
--- a/plugins/CloudFile/src/main.cpp
+++ b/plugins/CloudFile/src/main.cpp
@@ -29,6 +29,10 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC
int CMPlugin::Load()
{
+ HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu);
+ HookEvent(ME_MSG_WINDOWEVENT, OnSrmmWindowOpened);
+ HookEvent(ME_MSG_BUTTONPRESSED, OnSrmmButtonPressed);
+ HookEvent(ME_OPT_INITIALISE, OnOptionsInitialized);
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
InitializeIcons();