diff options
Diffstat (limited to 'plugins/Msg_Export/src')
-rwxr-xr-x | plugins/Msg_Export/src/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Msg_Export/src/main.cpp b/plugins/Msg_Export/src/main.cpp index a825e79c61..b4738b3193 100755 --- a/plugins/Msg_Export/src/main.cpp +++ b/plugins/Msg_Export/src/main.cpp @@ -105,11 +105,6 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/) bReadMirandaDirAndPath();
UpdateFileToColWidth();
- HookEvent(ME_DB_EVENT_ADDED, nExportEvent);
- HookEvent(ME_DB_EVENT_EDITED, nExportEvent);
- HookEvent(ME_DB_CONTACT_DELETED, nContactDeleted);
- HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
-
if (!g_bReplaceHistory) {
CMenuItem mi(&g_plugin);
SET_UID(mi, 0x701c543, 0xd078, 0x41dd, 0x95, 0xe3, 0x96, 0x49, 0x8a, 0x72, 0xc7, 0x50);
@@ -139,6 +134,10 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/) int CMPlugin::Load()
{
+ HookEvent(ME_DB_EVENT_ADDED, nExportEvent);
+ HookEvent(ME_DB_EVENT_EDITED, nExportEvent);
+ HookEvent(ME_DB_CONTACT_DELETED, nContactDeleted);
+ HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
HookEvent(ME_SYSTEM_MODULESLOADED, MainInit);
nMaxLineWidth = getWord("MaxLineWidth", nMaxLineWidth);
|