summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-16 18:38:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-16 18:38:29 +0300
commit2690a321eaee7586154083cb2cd0d711ab35c041 (patch)
tree50df9ec5e5e653939b2849f5640504ae8ac7ee49 /protocols
parent74b2537f5727016526a51decb3283bfc65fea835 (diff)
fix for a bug in the old versions of Conversations IM
Diffstat (limited to 'protocols')
-rwxr-xr-xprotocols/JabberG/src/jabber_misc.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_misc.cpp b/protocols/JabberG/src/jabber_misc.cpp
index 784364c502..440cf657cf 100755
--- a/protocols/JabberG/src/jabber_misc.cpp
+++ b/protocols/JabberG/src/jabber_misc.cpp
@@ -250,13 +250,14 @@ struct
}
static sttCapsNodeToName_Map[] =
{
- { L"http://miranda-im.org", L"Miranda IM Jabber" },
- { L"http://miranda-ng.org", L"Miranda NG Jabber" },
- { L"http://www.google.com", L"GTalk" },
- { L"http://mail.google.com", L"GMail" },
- { L"http://www.android.com", L"Android" },
- { L"http://qip.ru", L"QIP 2012" },
- { L"http://2010.qip.ru", L"QIP 2010"}
+ { L"http://miranda-im.org", L"Miranda IM Jabber" },
+ { L"http://miranda-ng.org", L"Miranda NG Jabber" },
+ { L"http://www.google.com", L"GTalk" },
+ { L"http://mail.google.com", L"GMail" },
+ { L"http://www.android.com", L"Android" },
+ { L"http://qip.ru", L"QIP 2012" },
+ { L"http://2010.qip.ru", L"QIP 2010"},
+ { L"http://conversations.im", L"Conversations IM" }
};
const wchar_t* CJabberProto::GetSoftName(const wchar_t *wszName)
@@ -302,8 +303,9 @@ void CJabberProto::FormatMirVer(const pResourceStatus &resource, CMStringW &res)
// unknown software
const wchar_t *szDefaultName = GetSoftName(pCaps->GetNode());
- res.Format(L"%s %s", (szDefaultName == nullptr) ? pCaps->GetSoft() : szDefaultName, pCaps->GetSoftVer());
-
+ res = (szDefaultName == nullptr) ? pCaps->GetSoft() : szDefaultName;
+ if (pCaps->GetSoftVer())
+ res.AppendFormat(L" %s", pCaps->GetSoftVer());
if (pCaps->GetSoftMir())
res.AppendFormat(L" %s", pCaps->GetSoftMir());
}