summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-29 14:27:30 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-03-29 14:27:30 +0200
commit8b032a6ece601c74ea0d9cf4f0c7a3e1ae72bcb2 (patch)
tree061b7060d5aa63c27d7d9bf4c7fc0ea6253a49a0 /src/windows.py
parentc2cb61da06b3c5a3acff152e28bfc5cccda1fd93 (diff)
downloadpoezio-8b032a6ece601c74ea0d9cf4f0c7a3e1ae72bcb2.tar.gz
poezio-8b032a6ece601c74ea0d9cf4f0c7a3e1ae72bcb2.tar.bz2
poezio-8b032a6ece601c74ea0d9cf4f0c7a3e1ae72bcb2.tar.xz
poezio-8b032a6ece601c74ea0d9cf4f0c7a3e1ae72bcb2.zip
Fix the highlight (now the nick is colored, not the message itself)
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index 786eaf82..eaa8da68 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -569,7 +569,7 @@ class TextWin(Win):
while txt != '':
(txt, cutted_txt) = cut_text(txt, self.width-offset-1)
if first:
- color = message.user.color if message.user else message.nick_color
+ color = message.nick_color or message.user.color if message.user else None
else:
color = None
if first: