summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-10-27 07:46:37 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-10-27 07:46:37 +0300
commit1f4c1f489f05bb135c8df93d40db9bb624be969d (patch)
treebd214f55f5932a60217a848868b9b4cb6fcd9df1 /main.cpp
parentc7417593521a2a96442e97508354e32f502bd931 (diff)
key autoexchange implementation started
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 898b672..df6bee9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1528,6 +1528,16 @@ void InitCheck()
if(MessageBoxA(0, question.c_str(), "Own secret key warning", MB_YESNO) == IDYES)
ShowFirstRunDialog();
}
+ extern bool bAutoExchange;
+ if(bAutoExchange && (ServiceExists(PS_ICQ_ADDCAPABILITY)))
+ {
+ ICQ_CUSTOMCAP cap;
+ cap.cbSize = sizeof(ICQ_CUSTOMCAP);
+ cap.hIcon = 0;
+ strcpy(cap.name, "GPG Key AutoExchange");
+ strcpy(cap.caps, "GPG AutoExchange");
+ CallService(PS_ICQ_ADDCAPABILITY, 0, (LPARAM)&cap);
+ }
}
void ImportKey()