diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-05 20:43:53 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-05 20:43:53 +0000 |
commit | 9a822ed7aaf76c5b75e5f55aecbe6c5f15bf829b (patch) | |
tree | d9ca5adfb3c4c77142a4d20fae4aea5e29340777 /src | |
parent | 1eba9f412bbb3d5a0127211ce022c8020e83e8fb (diff) | |
download | poezio-9a822ed7aaf76c5b75e5f55aecbe6c5f15bf829b.tar.gz poezio-9a822ed7aaf76c5b75e5f55aecbe6c5f15bf829b.tar.bz2 poezio-9a822ed7aaf76c5b75e5f55aecbe6c5f15bf829b.tar.xz poezio-9a822ed7aaf76c5b75e5f55aecbe6c5f15bf829b.zip |
fix the highlight color
Diffstat (limited to 'src')
-rw-r--r-- | src/room.py | 10 |
1 files changed, 5 insertions, 5 deletions
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 |