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

irc: fix refresh of buffer name in bar items after join/part/kick/kill (closes #86)

This commit is contained in:
Sébastien Helleu
2014-05-21 20:46:22 +02:00
parent 8e1d5e567e
commit c8103f14d2
2 changed files with 16 additions and 0 deletions
+14
View File
@@ -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
{