1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

irc: fix add of channel to autojoin option when joining a channel with a buffer still opened

This commit is contained in:
Sébastien Helleu
2022-04-24 21:49:31 +02:00
parent b7f3127bf8
commit 4d8df89bb5
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -2893,10 +2893,10 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments,
}
}
if (manual_join
&& !irc_channel_search (server, pos_channel)
&& (strcmp (pos_channel, "0") != 0))
{
if (weechat_config_boolean (irc_config_look_buffer_open_before_join))
if (!irc_channel_search (server, pos_channel)
&& weechat_config_boolean (irc_config_look_buffer_open_before_join))
{
/*
* open the channel buffer immediately (do not wait