diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2009-06-23 05:54:45 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2009-06-23 05:54:45 +0300 |
commit | c506453b8518a9bd7622756f24e24323ad97e375 (patch) | |
tree | 6cac9b33bac4a5dfae263e91f77aaf32e699a31c /stopspam_mod/trunk/init.cpp | |
parent | b06a183ded8a1dbd07de2f706290da55d22c128a (diff) |
added main menu entry for delete all temporary contacts.
Diffstat (limited to 'stopspam_mod/trunk/init.cpp')
-rw-r--r-- | stopspam_mod/trunk/init.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/stopspam_mod/trunk/init.cpp b/stopspam_mod/trunk/init.cpp index 17287f9..f762872 100644 --- a/stopspam_mod/trunk/init.cpp +++ b/stopspam_mod/trunk/init.cpp @@ -22,6 +22,7 @@ tstring gbCongratulation; std::string gbAuthRepl;
extern char * pluginDescription;
extern TCHAR const * defQuestion;
+extern int RemoveTmp(WPARAM,LPARAM);
struct MM_INTERFACE mmi;
@@ -171,12 +172,24 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) return interfaces;
}
+
+
extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink = link;
+ CLISTMENUITEM mi;
+ CreateServiceFunction("/RemoveTmp",RemoveTmp);
mir_getMMI(&mmi);
mir_getUTFI(&utfi);
HookEvent(ME_SYSTEM_MODULESLOADED, OnSystemModulesLoaded);
+ ZeroMemory(&mi,sizeof(mi));
+ mi.cbSize=sizeof(mi);
+ mi.position=-0x7FFFFFFF;
+ mi.flags=0;
+ mi.hIcon=LoadSkinnedIcon(SKINICON_OTHER_MIRANDA);
+ mi.pszName="Remove Temporary Contacts";
+ mi.pszService="/RemoveTmp";
+ CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&mi);
miranda::EventHooker::HookAll();
return 0;
|