diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-16 19:16:53 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-16 19:16:53 +0300 |
commit | bb3b1c84d2426172e1bd9db94872d5f5fa1e5182 (patch) | |
tree | 69f1670c2857e461e88f1a2421e2e70ea08345c7 /init.cpp | |
parent | f1e373bfacff144a1ab2a27898f835ceb774439a (diff) |
infernal crutches
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -20,6 +20,8 @@ bool bAppendTags = false;
TCHAR *inopentag, *inclosetag, *outopentag, *outclosetag;
+list <JabberAccount*> Accounts;
+
HINSTANCE hInst;
HANDLE hLoadPubKey = NULL, hToggleEncryption = NULL, hOnPreBuildContactMenu = NULL, hSendKey = NULL;
PLUGINLINK *pluginLink;
@@ -135,7 +137,8 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) int RecvMsgSvc(WPARAM w, LPARAM l);
int SendMsgSvc(WPARAM w, LPARAM l);
int HookSendMsg(WPARAM w, LPARAM l);
-// int TestHook(WPARAM w, LPARAM l);
+ int TestHook(WPARAM w, LPARAM l);
+ int GetJabberInterface(WPARAM w, LPARAM l);
void InitCheck();
@@ -143,8 +146,11 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) FirstRun();
InitCheck();
+ GetJabberInterface(0,0);
+
HookEvent(ME_OPT_INITIALISE, GpgOptInit);
HookEvent(ME_DB_EVENT_FILTER_ADD, HookSendMsg);
+ HookEvent(ME_PROTO_ACCLISTCHANGED, GetJabberInterface);
// HookEvent(ME_NETLIB_FASTSEND, TestHook);
hOnPreBuildContactMenu = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPreBuildContactMenu);
|