summaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-09-23 23:59:55 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-09-23 23:59:55 +0300
commit78f0ecedfbf15b6c093afc2d5ac159805fe9acda (patch)
tree457056963a01b2485be4f724df02d39c2a9e6f6a /init.cpp
parent538c201686084c9a8d575aec6d87faaeb1ffdf50 (diff)
basic file transfer hook
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.cpp b/init.cpp
index 1b0ac9c..d0a6dff 100644
--- a/init.cpp
+++ b/init.cpp
@@ -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);