From 5e2720fafbd4ebffa3585ac048673248bb12d55f Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 29 Nov 2015 03:25:46 +0100 Subject: Handle nick-less message properly --- src/windows/text_win.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/windows/text_win.py') 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) -- cgit v1.2.3