From 6f9dbc794d92326555fef2aa23baee72162f4578 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 6 May 2007 16:15:31 +0000 Subject: [PATCH] Do not recode the channel name used as target for the recoding of input line. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4486 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c index af3e3e4e..f7759cd2 100644 --- a/src/irc/core/irc.c +++ b/src/irc/core/irc.c @@ -282,7 +282,7 @@ static void irc_server_event(IRC_SERVER_REC *server, const char *line, { const char *signal; char *event, *args; - char *params, *target, *recoded_line, *recoded_nick, *recoded_channel; + char *params, *target, *recoded_line, *recoded_nick; g_return_if_fail(line != NULL); @@ -290,10 +290,9 @@ static void irc_server_event(IRC_SERVER_REC *server, const char *line, recoded_nick = recode_in(SERVER(server), nick, NULL); if (ischannel(*args) || (*args++ == '@' && ischannel(*args))) - target = recoded_channel = recode_in(SERVER(server), args, NULL); + target = args; else { target = recoded_nick; - recoded_channel = NULL; } recoded_line = recode_in(SERVER(server), line, target); /* split event / args */ @@ -320,7 +319,6 @@ static void irc_server_event(IRC_SERVER_REC *server, const char *line, g_free(params); g_free(recoded_line); g_free(recoded_nick); - g_free(recoded_channel); } /* Read line from server */