From b9e60d6ecf9b330973405356483f1cbe66626ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 21 Nov 2018 17:03:38 +0100 Subject: [PATCH] bar_items: Use the room member_count method for nicklist_count. --- 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 87d94c6..b6ea602 100644 --- a/matrix/bar_items.py +++ b/matrix/bar_items.py @@ -125,7 +125,7 @@ def matrix_bar_nicklist_count(data, item, window, buffer, extra_info): if buffer in server.buffers.values(): room_buffer = server.find_room_from_ptr(buffer) room = room_buffer.room - return str(len(room.users)) + return str(room.member_count) return ""