diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-27 07:46:37 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-27 07:46:37 +0300 |
commit | 1f4c1f489f05bb135c8df93d40db9bb624be969d (patch) | |
tree | bd214f55f5932a60217a848868b9b4cb6fcd9df1 /main.cpp | |
parent | c7417593521a2a96442e97508354e32f502bd931 (diff) |
key autoexchange implementation started
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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() |