summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-17 14:11:02 +0200
committermathieui <mathieui@mathieui.net>2012-05-17 14:11:02 +0200
commit65062754e194e2c1fadf4a30677444730e73ec71 (patch)
treed54b1cb5a42241a04830ec0b9380889951e2ee4f /src
parent4c0a3fb5a2eca27133e558fa8394b3d07d0203ba (diff)
downloadpoezio-65062754e194e2c1fadf4a30677444730e73ec71.tar.gz
poezio-65062754e194e2c1fadf4a30677444730e73ec71.tar.bz2
poezio-65062754e194e2c1fadf4a30677444730e73ec71.tar.xz
poezio-65062754e194e2c1fadf4a30677444730e73ec71.zip
Fix a crash if there are no messages in the room
Diffstat (limited to 'src')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
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):