Fix a crash if there are no messages in the room

This commit is contained in:
mathieui 2012-05-17 14:11:02 +02:00
parent 4c0a3fb5a2
commit 65062754e1

View file

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