diff options
author | George Hazan <ghazan@miranda.im> | 2022-02-15 19:53:05 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-02-15 19:53:05 +0300 |
commit | 1ba14480bd7dc9eaf1dfcf4e5ccd8a101f89133e (patch) | |
tree | e0b424e0b3359b84550d057c1b1bd08482203585 | |
parent | e9dd5c1891209c381e6a0d0493ac8d18a94b2ce2 (diff) |
Jabber: is OS version isn't shown, there's no need to include it into hash calculation
-rwxr-xr-x | protocols/JabberG/src/jabber_caps.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
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);
}
|