diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-07-19 09:46:23 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-07-19 09:46:23 +0000 |
commit | 8166d1523548681e36cabd52eaf6a7981d8fb935 (patch) | |
tree | a2ef0892b9a13f9501072ae7d6f5301931f937c6 /src/common/command.c | |
parent | 575525d965ae8ba2e23e7cb02aa0acb1e2ad9725 (diff) | |
download | weechat-8166d1523548681e36cabd52eaf6a7981d8fb935.zip |
Fixed auto-rejoin for channels with key
Diffstat (limited to 'src/common/command.c')
-rw-r--r-- | src/common/command.c | 4 |
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 { |