lowercase nicknames in vcard handler before comparing them

This commit is contained in:
Jan Kaluza 2011-08-09 14:21:41 +02:00
parent a1cf70cd89
commit e81f12bfe3

View file

@ -800,6 +800,7 @@ 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);
PurpleAccount *account = purple_connection_get_account(gc);
GList *vcardEntries = purple_notify_user_info_get_entries(user_info);
PurpleNotifyUserInfoEntry *vcardEntry;