diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-25 01:19:55 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-25 01:19:55 +0200 |
commit | 099daf99fd2dfc92bb10972192026445fc2b8b45 (patch) | |
tree | b63b9dfebb821ae90235e7a205077fa2c95baada /src/main.cpp | |
parent | 5574cabe88f53283e287cf436dbb63fbaee65c23 (diff) |
merged with miranda_ng main repo
implemented #64
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-x | src/main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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() |