diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-29 16:41:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-29 16:41:17 +0000 |
commit | 451c98173d83ee1618d7923890e803dd7067de40 (patch) | |
tree | b747494401925ec184b45a6d22d24683d8b3e38f /plugins/MetaContacts/src/meta_services.cpp | |
parent | 82637f50c80f6b9b7dad3d3d49535bab277596aa (diff) |
resource clearance moved to ME_SYSTEM_PRESHUTDOWN instead of ME_SYSTEM_OKTOEXIT
git-svn-id: http://svn.miranda-ng.org/main/trunk@5527 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MetaContacts/src/meta_services.cpp')
-rwxr-xr-x | plugins/MetaContacts/src/meta_services.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/plugins/MetaContacts/src/meta_services.cpp b/plugins/MetaContacts/src/meta_services.cpp index 0bc80c7254..8e27411d78 100755 --- a/plugins/MetaContacts/src/meta_services.cpp +++ b/plugins/MetaContacts/src/meta_services.cpp @@ -1351,7 +1351,6 @@ INT_PTR Meta_OnOff(WPARAM wParam, LPARAM lParam) int Meta_PreShutdown(WPARAM wParam, LPARAM lParam) {
- //MessageBox(0, "Preshutdown called", "MC", MB_OK);
Meta_SetStatus((WPARAM)ID_STATUS_OFFLINE, 0);
Meta_UnhideLinkedContacts();
Meta_SuppressStatus(FALSE);
@@ -1363,11 +1362,6 @@ int Meta_PreShutdown(WPARAM wParam, LPARAM lParam) { return 0;
}
-int Meta_OkToExit(WPARAM wParam, LPARAM lParam) {
- Meta_SetStatus((WPARAM)ID_STATUS_OFFLINE, 0);
- return 0;
-}
-
INT_PTR MenuFunc(WPARAM wParam, LPARAM lParam, LPARAM param)
{
return Meta_ContactMenuFunc(wParam, param);
@@ -1455,19 +1449,17 @@ void Meta_InitServices() // hook other module events we need
HookEvent(ME_PROTO_ACK, Meta_HandleACK);
- HookEvent(ME_DB_CONTACT_SETTINGCHANGED, Meta_SettingChanged);
- HookEvent(ME_SYSTEM_MODULESLOADED, Meta_ModulesLoaded);
HookEvent(ME_PROTO_CONTACTISTYPING, Meta_ContactIsTyping);
HookEvent(ME_DB_CONTACT_DELETED, Meta_ContactDeleted);
- HookEvent(ME_OPT_INITIALISE, Meta_OptInit );
-
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED, Meta_SettingChanged);
+ HookEvent(ME_OPT_INITIALISE, Meta_OptInit);
+ HookEvent(ME_SYSTEM_MODULESLOADED, Meta_ModulesLoaded);
HookEvent(ME_SYSTEM_PRESHUTDOWN, Meta_PreShutdown);
- HookEvent(ME_SYSTEM_OKTOEXIT, Meta_OkToExit);
// hook our own events, used to call Meta_GetMostOnline which sets nick for metacontact
- HookEvent(ME_MC_DEFAULTTCHANGED, Meta_CallMostOnline );
- HookEvent(ME_MC_FORCESEND, Meta_CallMostOnline );
- HookEvent(ME_MC_UNFORCESEND, Meta_CallMostOnline );
+ HookEvent(ME_MC_DEFAULTTCHANGED, Meta_CallMostOnline);
+ HookEvent(ME_MC_FORCESEND, Meta_CallMostOnline);
+ HookEvent(ME_MC_UNFORCESEND, Meta_CallMostOnline);
// redirect nudge events
hEventNudge = CreateHookableEvent(META_PROTO "/Nudge");
|