Maybe fix for XMPP avatars
This commit is contained in:
parent
13a6896ce1
commit
852bd33b22
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue