From 4a949b33a808c035d21742b947e6be49111ec77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Mon, 5 Feb 2018 12:48:23 +0100 Subject: [PATCH] Fix name bar item for the server buffer. The server buffer is a pointer to a buffer (that is a string in python) not a list like the room buffers. Don't use 'in' to check if the buffer belongs to the server, use 'is' instead. --- 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 48d1c00..3c46f1f 100644 --- a/matrix/bar_items.py +++ b/matrix/bar_items.py @@ -54,7 +54,7 @@ def matrix_bar_item_name(data, item, window, buffer, extra_info): color=W.color(color), name=room.alias) - elif buffer in server.server_buffer: + elif buffer is server.server_buffer: color = ("status_name_ssl" if server.ssl_context.check_hostname else "status_name")