Merge pull request #152 from MRAAGH/placeholder-room-name

Fix the room name if nio gives us None.
This commit is contained in:
poljar 2020-01-21 21:38:56 +01:00 committed by GitHub
commit 46640df3e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1164,6 +1164,10 @@ class RoomBuffer(object):
else:
room_name = self.room.display_name
if room_name is None:
# Use placeholder room name
room_name = 'Empty room (?)'
self.weechat_buffer.short_name = room_name
if G.CONFIG.human_buffer_names: