diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-21 20:46:22 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-21 20:46:22 +0200 |
commit | c8103f14d225f8d00c6e574834bc9cf20670595c (patch) | |
tree | e14e220d837c4d418265cdfefc3d37fd0f5554a8 | |
parent | 8e1d5e567ea502db490466f92961edbba91a5022 (diff) | |
download | weechat-c8103f14d225f8d00c6e574834bc9cf20670595c.zip |
irc: fix refresh of buffer name in bar items after join/part/kick/kill (closes #86)
-rw-r--r-- | ChangeLog.asciidoc | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index c45a8cf53..022f5209e 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -105,6 +105,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * alias: change default command for alias /beep to "/print -beep" * exec: add exec plugin: new command /exec and file exec.conf * guile: fix module used after unload of a script +* irc: fix refresh of buffer name in bar items after join/part/kick/kill + (closes #86) * irc: display message 936 (censored word) on channel instead of server buffer * irc: add bar item "irc_nick_modes" (closes #71) * irc: make reason optional in command /kill diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 4016349e9..4db3769f6 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -695,6 +695,12 @@ IRC_PROTOCOL_CALLBACK(join) irc_channel_display_nick_back_in_pv (server, ptr_nick, nick); } + if (local_join) + { + weechat_bar_item_update ("buffer_name"); + weechat_bar_item_update ("buffer_short_name"); + } + return WEECHAT_RC_OK; } @@ -802,6 +808,9 @@ IRC_PROTOCOL_CALLBACK(kick) ptr_channel); } } + + weechat_bar_item_update ("buffer_name"); + weechat_bar_item_update ("buffer_short_name"); } else { @@ -883,6 +892,9 @@ IRC_PROTOCOL_CALLBACK(kill) * more */ irc_nick_free_all (server, ptr_channel); + + weechat_bar_item_update ("buffer_name"); + weechat_bar_item_update ("buffer_short_name"); } else { @@ -1565,6 +1577,8 @@ IRC_PROTOCOL_CALLBACK(part) else ptr_channel->part = 1; } + weechat_bar_item_update ("buffer_name"); + weechat_bar_item_update ("buffer_short_name"); } else { |