diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-04-24 21:49:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-04-24 22:09:19 +0200 |
commit | 4d8df89bb5b56bd3ca7b281726722f9d21fefdf8 (patch) | |
tree | 9eec37034caec68a81c375e2989e362e9f992fa6 /src | |
parent | b7f3127bf81d53ea51a4147bb6ae3b7edcff2acd (diff) | |
download | weechat-4d8df89bb5b56bd3ca7b281726722f9d21fefdf8.zip |
irc: fix add of channel to autojoin option when joining a channel with a buffer still opened
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index d0dca1d1f..36b4adeec 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -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 |