diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-06 16:15:31 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-06 16:15:31 +0000 |
commit | 6f9dbc794d92326555fef2aa23baee72162f4578 (patch) | |
tree | b5e7d3c723b29c59232403fb89fe045dbaec5643 | |
parent | 7ae34b2877c3862a19017b949b9975f9d7085926 (diff) | |
download | irssi-6f9dbc794d92326555fef2aa23baee72162f4578.zip |
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
-rw-r--r-- | src/irc/core/irc.c | 6 |
1 files 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 */ |