fixed #1166

parent 9ac6a55a
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment