From 1f4c1f489f05bb135c8df93d40db9bb624be969d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 27 Oct 2010 07:46:37 +0300 Subject: key autoexchange implementation started --- main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main.cpp') 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() -- cgit v1.2.3