summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-whois.c
diff options
context:
space:
mode:
authorValentin Batz <senneth@irssi.org>2004-10-16 02:10:47 +0000
committersenneth <senneth@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-10-16 02:10:47 +0000
commit569b9efc7e605b3435a5483eb1f17fd6e0307da3 (patch)
treea30680991b8da714a4cc991ed734a40cbca1c669 /src/fe-common/irc/fe-whois.c
parent1d834b39b3e1ea7a327c786c869025478d65b96e (diff)
downloadirssi-569b9efc7e605b3435a5483eb1f17fd6e0307da3.zip
Added recode for the away-messages
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3321 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-whois.c')
-rw-r--r--src/fe-common/irc/fe-whois.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-whois.c b/src/fe-common/irc/fe-whois.c
index 812819e2..a6889fbd 100644
--- a/src/fe-common/irc/fe-whois.c
+++ b/src/fe-common/irc/fe-whois.c
@@ -266,14 +266,16 @@ static void event_whois_channels(IRC_SERVER_REC *server, const char *data)
static void event_whois_away(IRC_SERVER_REC *server, const char *data)
{
- char *params, *nick, *awaymsg;
+ char *params, *nick, *awaymsg, *recoded;
g_return_if_fail(data != NULL);
params = event_get_params(data, 3, NULL, &nick, &awaymsg);
+ recoded = recode_in(awaymsg, nick);
printformat(server, nick, MSGLEVEL_CRAP,
- IRCTXT_WHOIS_AWAY, nick, awaymsg);
+ IRCTXT_WHOIS_AWAY, nick, recoded);
g_free(params);
+ g_free(recoded);
}
static void event_end_of_whois(IRC_SERVER_REC *server, const char *data)