aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/nogaim.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@google.com>2010-07-05 13:01:28 +0100
committerWilmer van der Gaast <wilmer@google.com>2010-07-05 13:01:28 +0100
commit69b896b5967e5d13b1c60c68cb3bc7d4a0d5cd06 (patch)
tree4ae3696639aaef0ff003176a343abcb4fad5c8ac /protocols/nogaim.c
parent006a84f999248d1bc1c1e36fa3437765d4bd1142 (diff)
When addressing people in a chatroom, try to translate the nickname to the
original unstripped version (without ugly underscores, also).
Diffstat (limited to 'protocols/nogaim.c')
-rw-r--r--protocols/nogaim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c
index 0998291b..c23b0a3a 100644
--- a/protocols/nogaim.c
+++ b/protocols/nogaim.c
@@ -427,6 +427,9 @@ void imcb_buddy_nick_hint( struct im_connection *ic, const char *handle, const c
if( !bu || !nick ) return;
+ g_free( bu->nick );
+ bu->nick = g_strdup( nick );
+
if( bee->ui->user_nick_hint )
bee->ui->user_nick_hint( bee, bu, nick );
}