summaryrefslogtreecommitdiff
path: root/src/common/command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-07-19 09:46:23 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-07-19 09:46:23 +0000
commit8166d1523548681e36cabd52eaf6a7981d8fb935 (patch)
treea2ef0892b9a13f9501072ae7d6f5301931f937c6 /src/common/command.c
parent575525d965ae8ba2e23e7cb02aa0acb1e2ad9725 (diff)
downloadweechat-8166d1523548681e36cabd52eaf6a7981d8fb935.zip
Fixed auto-rejoin for channels with key
Diffstat (limited to 'src/common/command.c')
-rw-r--r--src/common/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/command.c b/src/common/command.c
index beeb2cb83..b8230af9c 100644
--- a/src/common/command.c
+++ b/src/common/command.c
@@ -971,7 +971,9 @@ weechat_cmd_buffer (int argc, char **argv)
{
if (SERVER(gui_current_window->buffer))
{
- if (SERVER(gui_current_window->buffer)->is_connected)
+ if (SERVER(gui_current_window->buffer)->is_connected
+ && CHANNEL(gui_current_window->buffer)
+ && CHANNEL(gui_current_window->buffer)->nicks)
irc_cmd_send_part (SERVER(gui_current_window->buffer), NULL);
else
{