summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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: