diff options
author | mathieui <mathieui@mathieui.net> | 2015-11-29 03:25:46 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-11-29 03:25:46 +0100 |
commit | 5e2720fafbd4ebffa3585ac048673248bb12d55f (patch) | |
tree | 63065f4c32f8b9706ee3128216d1abb1fb730740 /src/windows | |
parent | fa98b548d043fd93041387903f9581b39bdbc344 (diff) | |
download | poezio-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.py | 2 |
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) |