summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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()