From a852d3af4b39e5907f256405983d2c2d2140bd5e Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 2 Mar 2010 17:55:41 +0100 Subject: Fix bug with /away -all in IRC plugin: set or unset future away for disconnected servers (bug #29022) --- src/plugins/irc/irc-command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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", "+"); } -- cgit v1.2.3