summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-07 18:57:07 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-07 18:57:07 +0000
commiteb36e08e11e8acac2db6a0422b5c9bd5ec9ab395 (patch)
tree50df4b28577c5220f72d94382eda0ef1130b249e
parenta3c878bbb3ad07a6c21fd9d476d4a3093c04042d (diff)
downloadpoezio-eb36e08e11e8acac2db6a0422b5c9bd5ec9ab395.tar.gz
poezio-eb36e08e11e8acac2db6a0422b5c9bd5ec9ab395.tar.bz2
poezio-eb36e08e11e8acac2db6a0422b5c9bd5ec9ab395.tar.xz
poezio-eb36e08e11e8acac2db6a0422b5c9bd5ec9ab395.zip
fix the highlight
-rw-r--r--src/room.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/room.py b/src/room.py
index 59961d11..4e341cbe 100644
--- a/src/room.py
+++ b/src/room.py
@@ -69,9 +69,9 @@ class Room(object):
Set the tab color and returns the txt color
"""
color = None
- if not time and nickname != self.own_nick and self.joined and nickname is not None: # do the highlight
+ if not time and nickname.encode('utf-8') != self.own_nick and self.joined and nickname is not None: # do the highlight
try:
- if self.own_nick.encode('utf-8') in txt:
+ if self.own_nick in txt.encode('utf-8'):
self.set_color_state(common.ROOM_STATE_HL)
color = 4
except UnicodeDecodeError: