From 814f6082b4fa4b4c7c31edba2e1a63bfeaf71828 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Apr 2013 13:09:03 +0000 Subject: Non-IM protocol must be virtual git-svn-id: http://svn.miranda-ng.org/main/trunk@4300 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/Non-IM Contact/src/main.cpp b/plugins/Non-IM Contact/src/main.cpp index 2de679d57b..a41aa8500b 100644 --- a/plugins/Non-IM Contact/src/main.cpp +++ b/plugins/Non-IM Contact/src/main.cpp @@ -122,9 +122,7 @@ extern "C" __declspec(dllexport) int Load() HookEvent(ME_OPT_INITIALISE,NimcOptInit); HookEvent(ME_CLIST_STATUSMODECHANGE, SetLCStatus); - PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE }; - pd.szName = MODNAME; - pd.type = PROTOTYPE_PROTOCOL; + PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE, MODNAME, PROTOTYPE_VIRTUAL }; CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); //load services (the first 5 are the basic ones needed to make a new protocol) @@ -157,11 +155,12 @@ extern "C" __declspec(dllexport) int Load() Menu_AddMainMenuItem(&mi); if (db_get_b(NULL, MODNAME, "Beta",0)) { - mi.position = 600090000; + mi.position = 600090002; mi.pszName = LPGEN("&Export all Non-IM Contacts"); mi.pszService = "ExportLCcontacts"; Menu_AddMainMenuItem(&mi); + mi.position = 600090003; mi.pszName = LPGEN("&Import Non-IM Contacts"); mi.pszService = "ImportLCcontacts"; Menu_AddMainMenuItem(&mi); -- cgit v1.2.3