This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-02-14 13:33:33 +00:00
parent 9ac6a55af0
commit 3cc342f86e

View file

@ -369,8 +369,12 @@ class Gui(object):
self.window.topic_win.refresh(room.topic) self.window.topic_win.refresh(room.topic)
self.window.text_win.refresh(room.name) self.window.text_win.refresh(room.name)
else: else:
color = room.add_message(nick_from, body) if body.startswith('/me'):
self.window.text_win.add_line(room, (datetime.now(), nick_from.encode('utf-8'), body.encode('utf-8'), color)) 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(): if room == self.current_room():
self.window.text_win.refresh(room.name) self.window.text_win.refresh(room.name)
self.window.input.refresh() self.window.input.refresh()