From eb36e08e11e8acac2db6a0422b5c9bd5ec9ab395 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 7 Aug 2010 18:57:07 +0000 Subject: fix the highlight --- src/room.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/room.py') 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: -- cgit v1.2.3