summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprotocols/JabberG/src/jabber_caps.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp
index 1160dc9d49..ec64e4a83e 100755
--- a/protocols/JabberG/src/jabber_caps.cpp
+++ b/protocols/JabberG/src/jabber_caps.cpp
@@ -450,6 +450,12 @@ void CJabberProto::UpdateFeatHash()
feat_buf.Append("x-miranda-core-version"); feat_buf.AppendChar('<');
feat_buf.Append(szCoreVersion); feat_buf.AppendChar('<');
+ char os[256];
+ if (!OS_GetDisplayString(os, _countof(os))) {
+ feat_buf.Append("x-miranda-os-version"); feat_buf.AppendChar('<');
+ feat_buf.Append(os); feat_buf.AppendChar('<');
+ }
+
BYTE hash[MIR_SHA1_HASH_SIZE];
mir_sha1_hash((BYTE *)feat_buf.c_str(), feat_buf.GetLength(), hash);
ptrA szHash(mir_base64_encode(&hash, sizeof(hash)));