summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-02-09 19:57:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-02-09 19:57:44 +0300
commit819d4cd22fc5e6f8c3e8497c64346c13d76f04ad (patch)
tree37dbad1767e7f21d84234d92e2251c62cf015304 /plugins/TabSRMM/src/msgs.cpp
parenta43d5bcb1e0bdafb0193662168976aac989ed922 (diff)
fixes #1950 (Remove notification engine from TabSRMM)
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 5ac2bf91a6..c92dd843f0 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -31,7 +31,6 @@
#define IDI_CORE_LOAD 132 // icon id for the "connecting" icon
-NEN_OPTIONS nen_options;
static HANDLE hUserPrefsWindowLis = nullptr;
HMODULE g_hMsftedit;
@@ -687,18 +686,21 @@ int LoadSendRecvMessageModule(void)
Win7Taskbar = new CTaskbarInteract;
Win7Taskbar->updateMetrics();
- memset(&nen_options, 0, sizeof(nen_options));
PluginConfig.hUserPrefsWindowList = WindowList_Create();
sendQueue = new SendQueue;
Skin = new CSkin;
+ if (!db_is_module_empty(0, NEN_OLD_MODULE)) {
+ db_copy_module(NEN_OLD_MODULE, NEN_MODULE);
+ db_delete_module(0, NEN_OLD_MODULE);
+ }
+
HookEvent(ME_OPT_INITIALISE, OptInitialise);
InitAPI();
PluginConfig.reloadSystemStartup();
ReloadTabConfig();
- NEN_ReadOptions(&nen_options);
LoadDefaultTemplates();
return 0;