mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
irc: do not automatically open a channel with name "0" (closes #1429)
"0" is a special channel name which causes a client to leave all the channels it is presently on. Note that when option irc.look.buffer_open_before_join is on, WeeChat may still open channel buffers with an invalid channel name like "1". The server should reply something like that, displayed on the server buffer: 1: No such channel
This commit is contained in:
@@ -2636,7 +2636,8 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments,
|
||||
}
|
||||
if (manual_join
|
||||
&& weechat_config_boolean (irc_config_look_buffer_open_before_join)
|
||||
&& !irc_channel_search (server, pos_channel))
|
||||
&& !irc_channel_search (server, pos_channel)
|
||||
&& (strcmp (pos_channel, "0") != 0))
|
||||
{
|
||||
/*
|
||||
* open the channel buffer immediately (do not wait for the
|
||||
|
||||
Reference in New Issue
Block a user