fixed #1166
This commit is contained in:
parent
9ac6a55af0
commit
3cc342f86e
1 changed files with 6 additions and 2 deletions
|
@ -368,6 +368,10 @@ class Gui(object):
|
|||
if room == self.current_room():
|
||||
self.window.topic_win.refresh(room.topic)
|
||||
self.window.text_win.refresh(room.name)
|
||||
else:
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue