Merge pull request #152 from MRAAGH/placeholder-room-name
Fix the room name if nio gives us None.
This commit is contained in:
commit
46640df3e0
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue