1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Emanuele Giaquinta 2007-05-06 16:15:31 +00:00 committed by exg
parent 7ae34b2877
commit 6f9dbc794d

View File

@ -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 */