summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-command.c4
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