diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2012-07-29 18:49:17 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2012-07-29 18:49:17 +0000 |
commit | 66357371399956ad19ab667d3c2d49bfc7ea0095 (patch) | |
tree | 51dfe6236911663542bc1acd4e106b3a736ca3ab /protocols/IcqOscarJ/fam_01service.cpp | |
parent | 6eb6a545a869d91578dfa31844783f1f062129d0 (diff) |
ICQ: ported icq custom capabilities api from icq plus mod
NEW_GPG: many memmory corruption fixes
NEW_GPG: improoved auto key exchange
git-svn-id: http://svn.miranda-ng.org/main/trunk@1243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/fam_01service.cpp')
-rwxr-xr-x[-rw-r--r--] | protocols/IcqOscarJ/fam_01service.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/IcqOscarJ/fam_01service.cpp b/protocols/IcqOscarJ/fam_01service.cpp index cba344a195..58860481ca 100644..100755 --- a/protocols/IcqOscarJ/fam_01service.cpp +++ b/protocols/IcqOscarJ/fam_01service.cpp @@ -683,6 +683,8 @@ void CIcqProto::setUserInfo() wAdditionalData += 16;
#endif
+ wAdditionalData += CustomCapList.size() * 16;
+
//MIM/PackName
bool bHasPackName = false;
DBVARIANT dbv;
@@ -771,6 +773,12 @@ void CIcqProto::setUserInfo() ICQFreeVariant(&dbv);
}
+ if(!CustomCapList.empty())
+ {
+ for(std::list<ICQ_CUSTOMCAP*>::iterator it = CustomCapList.begin(), end = CustomCapList.end(); it != end; ++it)
+ packBuffer(&packet, (BYTE*)(*it)->caps, 0x10);
+ }
+
sendServPacket(&packet);
}
|