summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_caps.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-06 15:11:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-06 15:11:08 +0300
commitd947ecd5aa717a3856384855b41d30a8550fa762 (patch)
treeed65cdb8da5771e99e6a2c52b6879cf5607e6e49 /protocols/JabberG/src/jabber_caps.cpp
parentc8e7d7f60fee662436610e7b24d39b5da3a5454e (diff)
Jabber: fix for adding own capabilities
Diffstat (limited to 'protocols/JabberG/src/jabber_caps.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_caps.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp
index 655f0014e3..e3863e7ea9 100755
--- a/protocols/JabberG/src/jabber_caps.cpp
+++ b/protocols/JabberG/src/jabber_caps.cpp
@@ -103,6 +103,9 @@ void CJabberProto::AddDefaultCaps()
JabberCapsBits myCaps = JABBER_CAPS_MIRANDA_ALL;
if (m_options.UseOMEMO)
myCaps |= JABBER_CAPS_OMEMO_DEVICELIST_NOTIFY;
+ for (int i = 0; g_JabberFeatCapPairsExt[i].szFeature; i++)
+ if (g_JabberFeatCapPairsExt[i].Valid())
+ myCaps |= g_JabberFeatCapPairsExt[i].jcbCap;
wchar_t szOsBuffer[256]; szOsBuffer[0] = 0;
GetOSDisplayString(szOsBuffer, _countof(szOsBuffer));
@@ -112,10 +115,6 @@ void CJabberProto::AddDefaultCaps()
pCaps->m_szOsVer = mir_wstrdup(szOsBuffer);
pCaps->m_szSoft = mir_wstrdup(L"Miranda NG Jabber Protocol");
pCaps->m_szSoftMir = mir_wstrdup(szCoreVersion);
-
- for (int i = 0; g_JabberFeatCapPairsExt[i].szFeature; i++)
- if (g_JabberFeatCapPairsExt[i].Valid())
- m_clientCapsManager.SetOwnCaps(JABBER_CAPS_MIRANDA_NODE, g_JabberFeatCapPairsExt[i].szFeature, g_JabberFeatCapPairsExt[i].jcbCap);
}
void CJabberProto::OnIqResultCapsDiscoInfo(HXML, CJabberIqInfo *pInfo)