summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-25 01:17:50 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-25 01:17:50 +0200
commitd1eec37b0ba6af269da5218edbdd1a74d8c0983b (patch)
tree3a6b078ec7cb1876b3defb6a07368f7213c8af8e /main.cpp
parent2f19853406b588d59a86f2b5974131185c74fd8f (diff)
merged with miranda_ng main repo
implemented #64
Diffstat (limited to 'main.cpp')
-rwxr-xr-xmain.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 8da4c08..87edd03 100755
--- a/main.cpp
+++ b/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()