summaryrefslogtreecommitdiff
path: root/src/room.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-23 22:50:14 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-23 22:50:14 +0200
commita9d2cf8ff237e164e187c9e48745641e7db6deb8 (patch)
tree759fa46126d904c223c8f622c47533b1f08758f0 /src/room.py
parentb5beb9d8bf490019675ddbce274899f5a6ff9930 (diff)
downloadpoezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.tar.gz
poezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.tar.bz2
poezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.tar.xz
poezio-a9d2cf8ff237e164e187c9e48745641e7db6deb8.zip
make colors work with 3-digits color numbers
Diffstat (limited to 'src/room.py')
-rw-r--r--src/room.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/room.py b/src/room.py
index 37b0de66..b97dd0b6 100644
--- a/src/room.py
+++ b/src/room.py
@@ -101,7 +101,7 @@ class Room(TextBuffer):
self.log_message(txt, time, nickname)
special_message = False
if txt.startswith('/me '):
- txt = "\x192* \x195" + nickname + ' ' + txt[4:]
+ txt = "\x192}* \x195}" + nickname + ' ' + txt[4:]
special_message = True
user = self.get_user_by_name(nickname) if nickname is not None else None
if user:
@@ -115,13 +115,13 @@ class Room(TextBuffer):
self.set_color_state(get_theme().COLOR_TAB_NEW_MESSAGE)
nick_color = nick_color or None
if not nickname or time:
- txt = '\x195%s' % (txt,)
+ txt = '\x195}%s' % (txt,)
else: # TODO
highlight = self.do_highlight(txt, time, nickname)
if highlight:
nick_color = highlight
if special_message:
- txt = '\x195%s' % (txt,)
+ txt = '\x195}%s' % (txt,)
nickname = None
time = time or datetime.now()
message = Message(txt='%s\x19o'%(txt.replace('\t', ' '),), nick_color=nick_color,