diff options
author | mathieui <mathieui@mathieui.net> | 2012-05-17 14:11:02 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-05-17 14:11:02 +0200 |
commit | 65062754e194e2c1fadf4a30677444730e73ec71 (patch) | |
tree | d54b1cb5a42241a04830ec0b9380889951e2ee4f | |
parent | 4c0a3fb5a2eca27133e558fa8394b3d07d0203ba (diff) | |
download | poezio-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
-rw-r--r-- | src/windows.py | 2 |
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): |