From 728b55c7e6fc307f084caabfdaf6a89aa6cf4f1d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 May 2020 17:00:07 +0300 Subject: Jabber: fix for hiding software version via caps request --- protocols/JabberG/src/jabber_caps.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp index 20c0d42f3e..06e6e7f987 100755 --- a/protocols/JabberG/src/jabber_caps.cpp +++ b/protocols/JabberG/src/jabber_caps.cpp @@ -370,7 +370,12 @@ bool CJabberProto::HandleCapsInfoRequest(const TiXmlElement *, CJabberIqInfo *pI if (szNode) query << XATTR("node", szNode); - CMStringA szName(FORMAT, "Miranda %d.%d.%d.%d", __MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM); + CMStringA szName(getMStringA("Identity")); // hidden setting to be entered from dbeditor++ + if (szName.IsEmpty()) { + szName.Append("Miranda"); + if (m_bAllowVersionRequests) + szName.AppendFormat(" %d.%d.%d.%d", __MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM); + } query << XCHILD("identity") << XATTR("category", "client") << XATTR("type", "pc") << XATTR("name", szName); for (auto &it : g_JabberFeatCapPairs) -- cgit v1.2.3