From 6c86a5918337a9bc9d6b8b40fa3172fc14a58a65 Mon Sep 17 00:00:00 2001 From: Valentin Batz Date: Sun, 10 Oct 2004 23:04:04 +0000 Subject: [PATCH] Added recode to whois_channels event git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3317 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-whois.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fe-common/irc/fe-whois.c b/src/fe-common/irc/fe-whois.c index 1fec032b..812819e2 100644 --- a/src/fe-common/irc/fe-whois.c +++ b/src/fe-common/irc/fe-whois.c @@ -242,7 +242,7 @@ static void hide_safe_channel_id(IRC_SERVER_REC *server, char *chans) static void event_whois_channels(IRC_SERVER_REC *server, const char *data) { - char *params, *nick, *chans; + char *params, *nick, *chans, *recoded; g_return_if_fail(data != NULL); @@ -255,11 +255,13 @@ static void event_whois_channels(IRC_SERVER_REC *server, const char *data) chans = show_lowascii(chans); if (settings_get_bool("whois_hide_safe_channel_id")) hide_safe_channel_id(server, chans); + recoded = recode_in(chans, nick); printformat(server, nick, MSGLEVEL_CRAP, - IRCTXT_WHOIS_CHANNELS, nick, chans); + IRCTXT_WHOIS_CHANNELS, nick, recoded); g_free(chans); g_free(params); + g_free(recoded); } static void event_whois_away(IRC_SERVER_REC *server, const char *data)