diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 9500f7beb..653f879d1 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -524,10 +524,12 @@ irc_command_away (void *data, struct t_gui_buffer *buffer, int argc, for (ptr_server = irc_servers; ptr_server; ptr_server = ptr_server->next_server) { - if (ptr_server->is_connected) + if (ptr_server->buffer) + { irc_command_away_server (ptr_server, (argc > 2) ? argv_eol[2] : NULL, 1); + } } weechat_buffer_set (NULL, "hotlist", "+"); } |