summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r--src/plugins/irc/irc-command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index c43a7a362..b8c43fef8 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -2544,7 +2544,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))
+ && weechat_config_boolean (irc_config_look_buffer_open_before_join)
+ && !irc_channel_search (server, pos_channel))
{
/*
* open the channel buffer immediately (do not wait for the