summaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp6
1 files changed, 4 insertions, 2 deletions
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;
}