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:
parent
b5cf65dfd2
commit
b136153d34
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Reference in a new issue