Maybe fix for XMPP avatars

This commit is contained in:
HanzZ 2011-08-17 00:19:54 +02:00
parent 13a6896ce1
commit 852bd33b22

View file

@ -860,6 +860,11 @@ static PurpleConnectionUiOps conn_ui_ops =
static void *notify_user_info(PurpleConnection *gc, const char *who, PurpleNotifyUserInfo *user_info) {
std::string name(who);
std::transform(name.begin(), name.end(), name.begin(),(int(*)(int)) std::tolower);
size_t pos = name.find("/");
if (pos != std::string::npos)
name.erase((int) pos, name.length() - (int) pos);
PurpleAccount *account = purple_connection_get_account(gc);
GList *vcardEntries = purple_notify_user_info_get_entries(user_info);
PurpleNotifyUserInfoEntry *vcardEntry;