summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-11-29 03:25:46 +0100
committermathieui <mathieui@mathieui.net>2015-11-29 03:25:46 +0100
commit5e2720fafbd4ebffa3585ac048673248bb12d55f (patch)
tree63065f4c32f8b9706ee3128216d1abb1fb730740 /src/windows
parentfa98b548d043fd93041387903f9581b39bdbc344 (diff)
downloadpoezio-5e2720fafbd4ebffa3585ac048673248bb12d55f.tar.gz
poezio-5e2720fafbd4ebffa3585ac048673248bb12d55f.tar.bz2
poezio-5e2720fafbd4ebffa3585ac048673248bb12d55f.tar.xz
poezio-5e2720fafbd4ebffa3585ac048673248bb12d55f.zip
Handle nick-less message properly
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/text_win.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/text_win.py b/src/windows/text_win.py
index dda33f3e..273ee799 100644
--- a/src/windows/text_win.py
+++ b/src/windows/text_win.py
@@ -379,7 +379,7 @@ class TextWin(BaseTextWin):
if with_timestamps:
offset += self.write_time(msg.str_time)
- if msg.nickname is None: # not a message, nothing to do afterwards
+ if not msg.nickname: # not a message, nothing to do afterwards
return offset
nick = truncate_nick(msg.nickname, nick_size)