From 099daf99fd2dfc92bb10972192026445fc2b8b45 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 25 Jan 2013 01:19:55 +0200 Subject: merged with miranda_ng main repo implemented #64 --- src/main.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 8da4c08..87edd03 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -2304,6 +2304,26 @@ void InitCheck() CallService(svc, 0, (LPARAM)&cap); } } + if(bFileTransfers) + { + int count = 0; + PROTOACCOUNT **accounts; + ProtoEnumAccounts(&count, &accounts); + ICQ_CUSTOMCAP cap; + cap.cbSize = sizeof(ICQ_CUSTOMCAP); + cap.hIcon = 0; + strcpy(cap.name, "GPG Encrypted FileTransfers"); + strcpy(cap.caps, "GPG FileTransfer"); + + for(int i = 0; i < count; i++) + { + char svc[64]; + strcpy(svc, accounts[i]->szProtoName); + strcat(svc, PS_ICQ_ADDCAPABILITY); + if(ServiceExists(svc)) + CallService(svc, 0, (LPARAM)&cap); + } + } } void ImportKey() -- cgit v1.2.3