diff options
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() |