From b136153d345d06ef85b2eecb5426c62dab96bd89 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Wed, 15 May 2019 00:47:29 +0200 Subject: [PATCH] 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 --- matrix/bar_items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/bar_items.py b/matrix/bar_items.py index 3440a54..96e83a6 100644 --- a/matrix/bar_items.py +++ b/matrix/bar_items.py @@ -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 ""