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.
This commit is contained in:
poljar (Damir Jelić) 2018-02-05 12:48:23 +01:00
parent e02a731809
commit 4a949b33a8

View file

@ -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")