summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNils Görs <weechatter@arcor.de>2012-11-05 20:17:21 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-11-05 20:17:21 +0100
commitbae9215e9e7bc76ba54b1a4e139fb611f821f333 (patch)
tree79d2781cefa166e48a7afcd95370c1f67ea7abe9 /src
parent93d043824042d473d294b6d8ba10759dfb40a68a (diff)
downloadweechat-bae9215e9e7bc76ba54b1a4e139fb611f821f333.zip
irc: fix refresh of bar item "away" after command /away or /disconnect
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-command.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 2d67d630e..c4e21afc6 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -540,9 +540,6 @@ irc_command_away_server (struct t_irc_server *server, const char *arguments,
}
}
irc_server_set_away (server, server->nick, 0);
-
- /* ask refresh for "away" item */
- weechat_bar_item_update ("away");
}
else
{
@@ -554,6 +551,9 @@ irc_command_away_server (struct t_irc_server *server, const char *arguments,
_("%s: future away removed"),
IRC_PLUGIN_NAME);
}
+
+ /* ask refresh for "away" item */
+ weechat_bar_item_update ("away");
}
}
@@ -1423,6 +1423,9 @@ irc_command_disconnect_one_server (struct t_irc_server *server,
irc_command_quit_server (server, reason);
irc_server_disconnect (server, 0, 0);
+ /* ask refresh for "away" item */
+ weechat_bar_item_update ("away");
+
/* disconnect ok */
return 1;
}