diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-25 01:17:50 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-25 01:17:50 +0200 |
commit | d1eec37b0ba6af269da5218edbdd1a74d8c0983b (patch) | |
tree | 3a6b078ec7cb1876b3defb6a07368f7213c8af8e /main.cpp | |
parent | 2f19853406b588d59a86f2b5974131185c74fd8f (diff) |
merged with miranda_ng main repo
implemented #64
Diffstat (limited to 'main.cpp')
-rwxr-xr-x | main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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() |