diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-09-23 23:59:55 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-09-23 23:59:55 +0300 |
commit | 78f0ecedfbf15b6c093afc2d5ac159805fe9acda (patch) | |
tree | 457056963a01b2485be4f724df02d39c2a9e6f6a /init.cpp | |
parent | 538c201686084c9a8d575aec6d87faaeb1ffdf50 (diff) |
basic file transfer hook
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -17,7 +17,7 @@ #include "commonheaders.h" //global variables -bool bAppendTags = false, bDebugLog = false, bJabberAPI = false, bIsMiranda09 = false, bMetaContacts = false; +bool bAppendTags = false, bDebugLog = false, bJabberAPI = false, bIsMiranda09 = false, bMetaContacts = false, bFileTransfers = false; TCHAR *inopentag = NULL, *inclosetag = NULL, *outopentag = NULL, *outclosetag = NULL, *password = NULL; list <JabberAccount*> Accounts; @@ -89,6 +89,7 @@ void init_vars() bDebugLog = DBGetContactSettingByte(NULL, szGPGModuleName, "bDebugLog", 0); debuglog.init(); bJabberAPI = DBGetContactSettingByte(NULL, szGPGModuleName, "bJabberAPI", bIsMiranda09?1:0); + bFileTransfers = DBGetContactSettingByte(NULL, szGPGModuleName, "bFileTransfers", 1); } extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) @@ -150,6 +151,7 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) int onIconPressed(WPARAM wParam, LPARAM lParam); int onExtraImageListRebuilding(WPARAM, LPARAM); int onExtraImageApplying(WPARAM wParam, LPARAM); + int onProtoAck(WPARAM, LPARAM); void InitIconLib(); void InitCheck(); @@ -190,6 +192,8 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam) if(bJabberAPI && bIsMiranda09) HookEvent(ME_PROTO_ACCLISTCHANGED, GetJabberInterface); + HookEvent(ME_PROTO_ACK, onProtoAck); + HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPreBuildContactMenu); HookEvent(ME_MSG_WINDOWEVENT, onWindowEvent); |