diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-06-15 14:39:18 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-06-15 14:39:18 +0300 |
commit | fecf5df530e8da455c2417a5023cce5daae1292c (patch) | |
tree | 64e665ca8d796429dccf220da829645a5678ad99 /init.cpp | |
parent | 1d9ba06c9210745c220a421c8bae5043b60c0650 (diff) |
fixed add\delete contacts handling
modified: init.cpp
modified: utilities.cpp
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |