From 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Mon, 12 Nov 2018 20:12:53 +0300
Subject: end of ME_OPT_INITIALISE related zoo in another plugins

---
 plugins/Msg_Export/src/main.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'plugins/Msg_Export')

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);
-- 
cgit v1.2.3