summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-01-27 13:27:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-01-27 13:27:11 +0300
commitaa668d6ae29407bab7222929cc0145db5bab2129 (patch)
tree6e8a4d9a3573044d6fca65582c8f552b562da131
parent0283c263de0d8d13cca351790ffefee8fbe73d75 (diff)
fixes #3014 (Jabber: additional space is added to MirVer when software version string is empty)
-rwxr-xr-xprotocols/JabberG/src/jabber_misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp
index 201cb7d5aa..64a7126bc6 100755
--- a/protocols/JabberG/src/jabber_misc.cpp
+++ b/protocols/JabberG/src/jabber_misc.cpp
@@ -304,9 +304,9 @@ void CJabberProto::FormatMirVer(const pResourceStatus &resource, CMStringA &res)
// unknown software
const char *szDefaultName = GetSoftName(pCaps->GetNode());
res = (szDefaultName == nullptr) ? pCaps->GetSoft() : szDefaultName;
- if (pCaps->GetSoftVer())
+ if (mir_strlen(pCaps->GetSoftVer()))
res.AppendFormat(" %s", pCaps->GetSoftVer());
- if (pCaps->GetSoftMir())
+ if (mir_strlen(pCaps->GetSoftMir()))
res.AppendFormat(" %s", pCaps->GetSoftMir());
}