Don't remove part of JID in prpl-any mode in vcard requets

This commit is contained in:
Jan Kaluza 2011-08-01 16:36:36 +02:00
parent 037cf20326
commit 5ad84a3775

View file

@ -353,7 +353,7 @@ class SpectrumNetworkPlugin : public NetworkPlugin {
PurpleAccount *account = m_sessions[user];
if (account) {
std::string name = legacyName;
if (CONFIG_STRING(config, "service.protocol") == "any") {
if (CONFIG_STRING(config, "service.protocol") == "any" && legacyName.find("prpl-") == 0) {
name = name.substr(name.find(".") + 1);
}
serv_get_info(purple_account_get_connection(account), name.c_str());