summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-05-21 20:46:22 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-05-21 20:46:22 +0200
commitc8103f14d225f8d00c6e574834bc9cf20670595c (patch)
treee14e220d837c4d418265cdfefc3d37fd0f5554a8 /src
parent8e1d5e567ea502db490466f92961edbba91a5022 (diff)
downloadweechat-c8103f14d225f8d00c6e574834bc9cf20670595c.zip
irc: fix refresh of buffer name in bar items after join/part/kick/kill (closes #86)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c14
1 files changed, 14 insertions, 0 deletions
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
{