summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
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)