summaryrefslogtreecommitdiff
path: root/plugins/BuddyPounce/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/BuddyPounce/src/main.cpp')
-rw-r--r--plugins/BuddyPounce/src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/BuddyPounce/src/main.cpp b/plugins/BuddyPounce/src/main.cpp
index 23c1d0142f..9fc8e1461a 100644
--- a/plugins/BuddyPounce/src/main.cpp
+++ b/plugins/BuddyPounce/src/main.cpp
@@ -1,5 +1,6 @@
#include "stdafx.h"
+CLIST_INTERFACE *pcli;
int hLangpack;
HINSTANCE hInst;
MWindowList hWindowList;
@@ -231,18 +232,20 @@ INT_PTR AddToPounce(WPARAM wParam, LPARAM lParam)
extern "C" __declspec(dllexport) int Load(void)
{
mir_getLP(&pluginInfo);
+ mir_getCLI();
+
HookEvent(ME_SYSTEM_MODULESLOADED, MainInit);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, UserOnlineSettingChanged);
HookEvent(ME_OPT_INITIALISE, BuddyPounceOptInit);
HookEvent(ME_PROTO_ACK, MsgAck);
+
CreateServiceFunction("BuddyPounce/MenuCommand", BuddyPounceMenuCommand);
+
hWindowList = WindowList_Create();
/* service funcitons for other devs... */
CreateServiceFunction("BuddyPounce/AddSimplePounce", AddSimpleMessage); // add a simple pounce to a contact
CreateServiceFunction("BuddyPounce/AddToPounce", AddToPounce); // add to the exsisitng pounce, if there isnt 1 then add a new simple pounce.
- /* ******************************************************** */
-
return 0;
}