summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/plugins/irc/irc-command.c9
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a0dfa04ff..523a7af24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
-v0.4.0-dev, 2012-11-04
+v0.4.0-dev, 2012-11-05
Version 0.4.0 (under dev!)
@@ -27,6 +27,7 @@ Version 0.4.0 (under dev!)
aspell.check.suggestions (task #12061)
* aspell: fix creation of spellers when number of dictionaries is different
between two buffers
+* irc: fix refresh of bar item "away" after command /away or /disconnect
* irc: add command /quiet, fix display of messages 728/729 (quiet list, end of
quiet list) (task #12278)
* irc: add option irc.network.alternate_nick to disable dynamic nick generation
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;
}