From 1ba14480bd7dc9eaf1dfcf4e5ccd8a101f89133e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 15 Feb 2022 19:53:05 +0300 Subject: Jabber: is OS version isn't shown, there's no need to include it into hash calculation --- protocols/JabberG/src/jabber_caps.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp index 12520bc4fe..af1fa7a768 100755 --- a/protocols/JabberG/src/jabber_caps.cpp +++ b/protocols/JabberG/src/jabber_caps.cpp @@ -114,12 +114,14 @@ void CJabberProto::AddDefaultCaps() if (it.Valid()) myCaps |= it.jcbCap; - char szOsBuffer[256]; - OS_GetDisplayString(szOsBuffer, _countof(szOsBuffer)); - CJabberClientPartialCaps *pCaps = g_clientCapsManager.SetClientCaps(JABBER_CAPS_MIRANDA_NODE, m_szFeaturesCrc, __VERSION_STRING_DOTS, myCaps); - pCaps->SetOs("Microsoft Windows"); - pCaps->SetOsVer(szOsBuffer); + if (m_bShowOSVersion) { + char szOsBuffer[256]; + OS_GetDisplayString(szOsBuffer, _countof(szOsBuffer)); + + pCaps->SetOs("Microsoft Windows"); + pCaps->SetOsVer(szOsBuffer); + } pCaps->SetSoft("Miranda NG Jabber Protocol"); pCaps->SetSoftMir(szCoreVersion); } -- cgit v1.2.3