Fix a crash if there are no messages in the room
This commit is contained in:
parent
4c0a3fb5a2
commit
65062754e1
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,7 @@ class TextWin(Win):
|
|||
"""
|
||||
if None not in self.built_lines:
|
||||
self.built_lines.append(None)
|
||||
if room:
|
||||
if room and room.messages:
|
||||
self.separator_after = room.messages[-1]
|
||||
|
||||
def build_new_message(self, message, history=None, clean=True, highlight=False):
|
||||
|
|
Loading…
Reference in a new issue