From 9a822ed7aaf76c5b75e5f55aecbe6c5f15bf829b Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Thu, 5 Aug 2010 20:43:53 +0000 Subject: fix the highlight color --- src/room.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/room.py b/src/room.py index 0167541e..59961d11 100644 --- a/src/room.py +++ b/src/room.py @@ -72,13 +72,13 @@ class Room(object): if not time and nickname != self.own_nick and self.joined and nickname is not None: # do the highlight try: if self.own_nick.encode('utf-8') in txt: - self.set_color_state(13) - color = 2 + self.set_color_state(common.ROOM_STATE_HL) + color = 4 except UnicodeDecodeError: try: if self.own_nick in txt: - self.set_color_state(13) - color = 2 + self.set_color_state(common.ROOM_STATE_HL) + color = 4 except: pass else: @@ -86,7 +86,7 @@ class Room(object): for word in highlight_words: if word.lower() in txt.lower() and word != '': self.set_color_state(common.ROOM_STATE_HL) - color = 2 + color = 4 break return color -- cgit v1.2.3