summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-03-02 17:55:41 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-03-02 17:55:41 +0100
commita852d3af4b39e5907f256405983d2c2d2140bd5e (patch)
treed85fc0c0d7a65aac85f66ac1b7bf68fb6ebb6b58 /src/plugins
parent0543b0ccc7253bd38d5f473c3e1092e2b065b6ec (diff)
downloadweechat-a852d3af4b39e5907f256405983d2c2d2140bd5e.zip
Fix bug with /away -all in IRC plugin: set or unset future away for disconnected servers (bug #29022)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-command.c4
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", "+");
}