From fecf5df530e8da455c2417a5023cce5daae1292c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 15 Jun 2010 14:39:18 +0300 Subject: fixed add\delete contacts handling modified: init.cpp modified: utilities.cpp --- init.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'init.cpp') diff --git a/init.cpp b/init.cpp index a858ef9..4ccdd0a 100644 --- a/init.cpp +++ b/init.cpp @@ -88,14 +88,16 @@ void InitVars() extern int JuickOptInit(WPARAM wParam,LPARAM lParam); extern int GetJabberInterface(WPARAM, LPARAM); -extern int HandleNewContact(WPARAM w, LPARAM l); +extern int HandleDbNewContact(WPARAM w, LPARAM l); +extern int HandleDbContactDeleted(WPARAM w, LPARAM l); extern void FindJuickAccounts(); static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) { GetJabberInterface(0,0); HookEvent(ME_OPT_INITIALISE, JuickOptInit); hAccountsChanges = HookEvent(ME_PROTO_ACCLISTCHANGED, GetJabberInterface); - hDbContactAdded = HookEvent(ME_DB_CONTACT_ADDED, HandleNewContact); + hDbContactAdded = HookEvent(ME_DB_CONTACT_ADDED, HandleDbNewContact); + hDbContactAdded = HookEvent(ME_DB_CONTACT_DELETED, HandleDbContactDeleted); FindJuickAccounts(); return 0; } -- cgit v1.2.3