1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 19:53:13 +02:00

irc: fix refresh of bar item "away" after command /away or /disconnect

This commit is contained in:
Nils Görs
2012-11-05 20:17:21 +01:00
committed by Sebastien Helleu
parent 93d0438240
commit bae9215e9e
2 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -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;
}