From 0510e1e7b42979598e9b4c072addbbf0ae517bab Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 14 Jun 2010 14:25:55 +0300 Subject: modified: globals.h modified: init.cpp modified: utilities.cpp --- init.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'init.cpp') diff --git a/init.cpp b/init.cpp index 9c165de..a858ef9 100644 --- a/init.cpp +++ b/init.cpp @@ -20,7 +20,7 @@ #define PLUGIN_NAME "juick" HINSTANCE hInst; -static HANDLE hAccountsChanges; +static HANDLE hAccountsChanges, hDbContactAdded; PLUGINLINK *pluginLink; static int OnModulesLoaded(WPARAM wParam,LPARAM lParam); extern char *date(); @@ -88,12 +88,15 @@ void InitVars() extern int JuickOptInit(WPARAM wParam,LPARAM lParam); extern int GetJabberInterface(WPARAM, LPARAM); - +extern int HandleNewContact(WPARAM w, LPARAM l); +extern void FindJuickAccounts(); static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) { GetJabberInterface(0,0); - HANDLE hHookOptionInit = HookEvent(ME_OPT_INITIALISE, JuickOptInit); - hAccountsChanges = HookEvent(ME_PROTO_ACCLISTCHANGED, GetJabberInterface); + HookEvent(ME_OPT_INITIALISE, JuickOptInit); + hAccountsChanges = HookEvent(ME_PROTO_ACCLISTCHANGED, GetJabberInterface); + hDbContactAdded = HookEvent(ME_DB_CONTACT_ADDED, HandleNewContact); + FindJuickAccounts(); return 0; } -- cgit v1.2.3