summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc')
-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;
}