summaryrefslogtreecommitdiff
path: root/plugins/GmailNotifier
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 20:12:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 20:12:53 +0300
commit488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (patch)
tree96b0db981b4f5054f24d484902b597ba7da1c1a5 /plugins/GmailNotifier
parent9b35784c5042984fbb60785f0a4a41a64af545f6 (diff)
end of ME_OPT_INITIALISE related zoo in another plugins
Diffstat (limited to 'plugins/GmailNotifier')
-rw-r--r--plugins/GmailNotifier/src/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/GmailNotifier/src/main.cpp b/plugins/GmailNotifier/src/main.cpp
index c24d707c59..e894e5c6d5 100644
--- a/plugins/GmailNotifier/src/main.cpp
+++ b/plugins/GmailNotifier/src/main.cpp
@@ -13,7 +13,6 @@ There is no warranty.
CMPlugin g_plugin;
UINT hTimer;
-HANDLE hMirandaStarted, hOptionsInitial;
HNETLIBUSER hNetlibUser;
NOTIFYICONDATA niData;
optionSettings opt;
@@ -127,8 +126,8 @@ int CMPlugin::Load()
db_set_dw(it->hContact, MODULENAME, "Status", ID_STATUS_NONEW);
hTimer = SetTimer(nullptr, 0, opt.circleTime * 60000, TimerProc);
- hMirandaStarted = HookEvent(ME_SYSTEM_MODULESLOADED, OnMirandaStart);
- hOptionsInitial = HookEvent(ME_OPT_INITIALISE, OptInit);
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnMirandaStart);
+ HookEvent(ME_OPT_INITIALISE, OptInit);
CreateServiceFunction(MODULENAME "/MenuCommand", PluginMenuCommand);
@@ -159,8 +158,5 @@ int CMPlugin::Unload()
g_accs.destroy();
Netlib_CloseHandle(hNetlibUser);
-
- UnhookEvent(hMirandaStarted);
- UnhookEvent(hOptionsInitial);
return 0;
}