From d947ecd5aa717a3856384855b41d30a8550fa762 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Sep 2017 15:11:08 +0300 Subject: Jabber: fix for adding own capabilities --- protocols/JabberG/src/jabber_caps.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src') 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) -- cgit v1.2.3