Use nicklist_visible_count for buffer_nicklist_count bar item

This is the value which is used by default as per
https://github.com/weechat/weechat/blob/v2.4/src/gui/gui-bar-item.c#L1262
This commit is contained in:
Trygve Aaberge 2019-05-15 00:47:29 +02:00
parent b5cf65dfd2
commit b136153d34

View file

@ -134,10 +134,10 @@ def matrix_bar_nicklist_count(data, item, window, buffer, extra_info):
room = room_buffer.room
return "{}{}".format(color, room.member_count)
nick_count = W.buffer_get_integer(buffer, "nicklist_nicks_count")
nicklist_enabled = bool(W.buffer_get_integer(buffer, "nicklist"))
if nicklist_enabled:
nick_count = W.buffer_get_integer(buffer, "nicklist_visible_count")
return "{}{}".format(color, nick_count)
return ""