summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2016-10-19 20:34:18 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2016-10-19 20:34:18 +0300
commit2a877dcf06389fdc1dcd65e9c56562eb3a0787f0 (patch)
tree89d311474a357955269c975ccbc5a6abf8b2b1a9 /protocols
parent072bfe7969fded36f765cc14185879ccbc90c8b6 (diff)
parent38e45092ed0f39dd347e33833f74fafd51d94597 (diff)
Merge remote-tracking branch 'origin/master' into jabber_test
Conflicts: protocols/JabberG/src/jabber_util.cpp
Diffstat (limited to 'protocols')
-rwxr-xr-xprotocols/JabberG/src/jabber_util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index e8525a9478..b0e2a15f8b 100755
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -384,6 +384,7 @@ void CJabberProto::SendPresenceTo(int status, const wchar_t* to, HXML extra, con
XmlAddChild(p, extra);
// XEP-0115:Entity Capabilities
+ if (m_options.AllowVersionRequests) {
HXML c = p << XCHILDNS(L"c", JABBER_FEAT_ENTITY_CAPS) << XATTR(L"node", L"http://client/caps")
<< XATTR(L"ver", szCoreVersion);
@@ -432,6 +433,7 @@ void CJabberProto::SendPresenceTo(int status, const wchar_t* to, HXML extra, con
}
XmlAddAttr(c, L"ext", szExtCaps);
}
+ }
if (m_options.EnableAvatars) {
HXML x = p << XCHILDNS(L"x", L"vcard-temp:x:update");