summaryrefslogtreecommitdiff
path: root/src/modules/metacontacts/meta_main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-26 20:16:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-26 20:16:22 +0000
commitf9119fac2e31abf98b4def0814a8fd75abaef150 (patch)
treeb3a12d2a78d0eb53796f4e8854693ef24a5ab1b2 /src/modules/metacontacts/meta_main.cpp
parent934609ae8f259656c0e5cd80b44dfd933a0f01ec (diff)
preparing to load mc module
git-svn-id: http://svn.miranda-ng.org/main/trunk@8281 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/meta_main.cpp')
-rw-r--r--src/modules/metacontacts/meta_main.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/modules/metacontacts/meta_main.cpp b/src/modules/metacontacts/meta_main.cpp
index 6c202feac5..e8fc8f1366 100644
--- a/src/modules/metacontacts/meta_main.cpp
+++ b/src/modules/metacontacts/meta_main.cpp
@@ -49,19 +49,13 @@ HICON LoadIconEx(IconIndex i)
return Skin_GetIcon(iconList[i].szName);
}
-/** Prepare the plugin to stop
-* Called by Miranda when it will exit or when the plugin gets deselected
-*/
-int UnloadMetacontacts(void)
+void UnloadMetacontacts(void)
{
- // see also meta_services.c, Meta_PreShutdown
Meta_CloseHandles();
- return 0;
}
-/** Initializes the services provided and the link to those needed
-* Called when the plugin is loaded into Miranda
-*/
+// Initializes the services provided and the link to those needed
+// Called when the plugin is loaded into Miranda
int LoadMetacontacts(void)
{
Icon_Register(hInst, META_PROTO, iconList, SIZEOF(iconList), "mc");
@@ -98,7 +92,6 @@ int LoadMetacontacts(void)
MessageBox(0, TranslateT("Error - Database corruption.\nPlugin disabled."), TranslateT("MetaContacts"), MB_OK | MB_ICONERROR);
db_set_b(0, META_PROTO, "DisabledMessageShown", 1);
}
- //Meta_HideMetaContacts(TRUE);
return 1;
}