summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-25 01:19:55 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-25 01:19:55 +0200
commit099daf99fd2dfc92bb10972192026445fc2b8b45 (patch)
treeb63b9dfebb821ae90235e7a205077fa2c95baada /src/main.cpp
parent5574cabe88f53283e287cf436dbb63fbaee65c23 (diff)
merged with miranda_ng main repo
implemented #64
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-xsrc/main.cpp20
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()