From 65062754e194e2c1fadf4a30677444730e73ec71 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 17 May 2012 14:11:02 +0200 Subject: Fix a crash if there are no messages in the room --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/windows.py') diff --git a/src/windows.py b/src/windows.py index ea2cb3f7..e5973ec9 100644 --- a/src/windows.py +++ b/src/windows.py @@ -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): -- cgit v1.2.3