summaryrefslogtreecommitdiff
path: root/finch/gntnotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'finch/gntnotify.c')
-rw-r--r--finch/gntnotify.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/finch/gntnotify.c b/finch/gntnotify.c
index b13eea4724..49ea0c5b6b 100644
--- a/finch/gntnotify.c
+++ b/finch/gntnotify.c
@@ -157,7 +157,11 @@ static char *
userinfo_hash(PurpleAccount *account, const char *who)
{
char key[256];
- g_snprintf(key, sizeof(key), "%s - %s", purple_account_get_username(account), purple_normalize(account, who));
+
+ g_snprintf(key, sizeof(key), "%s - %s",
+ purple_contact_info_get_username(PURPLE_CONTACT_INFO(account)),
+ purple_normalize(account, who));
+
return g_utf8_strup(key, -1);
}