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:
parent
7ae34b2877
commit
6f9dbc794d
@ -282,7 +282,7 @@ static void irc_server_event(IRC_SERVER_REC *server, const char *line,
|
|||||||
{
|
{
|
||||||
const char *signal;
|
const char *signal;
|
||||||
char *event, *args;
|
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);
|
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);
|
recoded_nick = recode_in(SERVER(server), nick, NULL);
|
||||||
if (ischannel(*args) ||
|
if (ischannel(*args) ||
|
||||||
(*args++ == '@' && ischannel(*args)))
|
(*args++ == '@' && ischannel(*args)))
|
||||||
target = recoded_channel = recode_in(SERVER(server), args, NULL);
|
target = args;
|
||||||
else {
|
else {
|
||||||
target = recoded_nick;
|
target = recoded_nick;
|
||||||
recoded_channel = NULL;
|
|
||||||
}
|
}
|
||||||
recoded_line = recode_in(SERVER(server), line, target);
|
recoded_line = recode_in(SERVER(server), line, target);
|
||||||
/* split event / args */
|
/* split event / args */
|
||||||
@ -320,7 +319,6 @@ static void irc_server_event(IRC_SERVER_REC *server, const char *line,
|
|||||||
g_free(params);
|
g_free(params);
|
||||||
g_free(recoded_line);
|
g_free(recoded_line);
|
||||||
g_free(recoded_nick);
|
g_free(recoded_nick);
|
||||||
g_free(recoded_channel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read line from server */
|
/* Read line from server */
|
||||||
|
Loading…
Reference in New Issue
Block a user