summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-14 13:33:33 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-14 13:33:33 +0000
commit3cc342f86ed5ffdd66cb3654b0cd06a5b4a1fc92 (patch)
treefaa92293610c49f82097c3d78382707c31157e84
parent9ac6a55af0250e075691e578fee7ad5728d704b8 (diff)
downloadpoezio-3cc342f86ed5ffdd66cb3654b0cd06a5b4a1fc92.tar.gz
poezio-3cc342f86ed5ffdd66cb3654b0cd06a5b4a1fc92.tar.bz2
poezio-3cc342f86ed5ffdd66cb3654b0cd06a5b4a1fc92.tar.xz
poezio-3cc342f86ed5ffdd66cb3654b0cd06a5b4a1fc92.zip
fixed #1166
-rw-r--r--src/gui.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui.py b/src/gui.py
index a0d85c82..f3dcee56 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -369,8 +369,12 @@ class Gui(object):
self.window.topic_win.refresh(room.topic)
self.window.text_win.refresh(room.name)
else:
- color = room.add_message(nick_from, body)
- self.window.text_win.add_line(room, (datetime.now(), nick_from.encode('utf-8'), body.encode('utf-8'), color))
+ if body.startswith('/me'):
+ info = room.add_info(nick_from + ' ' + body[4:])
+ self.window.text_win.add_line(room, (datetime.now(), info))
+ else:
+ color = room.add_message(nick_from, body)
+ self.window.text_win.add_line(room, (datetime.now(), nick_from.encode('utf-8'), body.encode('utf-8'), color))
if room == self.current_room():
self.window.text_win.refresh(room.name)
self.window.input.refresh()