diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-16 18:38:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-16 18:38:29 +0300 |
commit | 2690a321eaee7586154083cb2cd0d711ab35c041 (patch) | |
tree | 50df9ec5e5e653939b2849f5640504ae8ac7ee49 /protocols | |
parent | 74b2537f5727016526a51decb3283bfc65fea835 (diff) |
fix for a bug in the old versions of Conversations IM
Diffstat (limited to 'protocols')
-rwxr-xr-x | protocols/JabberG/src/jabber_misc.cpp | 20 |
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());
}
|