summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index f10c0853..53cd0781 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -576,7 +576,12 @@ class TextWin(Win):
while txt != '':
(txt, cutted_txt) = cut_text(txt, self.width-offset-1)
if first:
- color = message.nick_color or message.user.color if message.user else None
+ if message.user:
+ color = message.user.color
+ elif message.nick_color:
+ color = message.nick_color
+ else:
+ color = None
else:
color = None
if first: