diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-06-18 16:09:34 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-06-18 16:09:34 +0200 |
commit | 53ee85ea6dea76f8f12acc5f5faf4b1171102ea0 (patch) | |
tree | 185ac6b232d77fb5882c13ba5c4a75c912ca63bd /src | |
parent | 77a2165639e3ba49c84496a4b7ae22908fb2bc9c (diff) | |
download | poezio-53ee85ea6dea76f8f12acc5f5faf4b1171102ea0.tar.gz poezio-53ee85ea6dea76f8f12acc5f5faf4b1171102ea0.tar.bz2 poezio-53ee85ea6dea76f8f12acc5f5faf4b1171102ea0.tar.xz poezio-53ee85ea6dea76f8f12acc5f5faf4b1171102ea0.zip |
Fix colors in private quit messages
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index 7f6c91ff..f69ef919 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -919,6 +919,7 @@ class MucTab(ChatTab): if status: leave_msg += ' (%s)' % status room.add_message(leave_msg) + self.refresh_window() self.core.on_user_left_private_conversation(from_room, from_nick, status) def on_user_change_status(self, room, user, from_nick, from_room, affiliation, role, show, status): @@ -1096,9 +1097,9 @@ class PrivateTab(ChatTab): The user left the associated MUC """ if not status_message: - self.get_room().add_message(_('%(spec)s "[%(nick)s]" has left the room') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT.replace('"', '\\"')}) + self.get_room().add_message(_('\x191%(spec)s \x193%(nick)s\x195 has left the room') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT.replace('"', '\\"')}) else: - self.get_room().add_message(_('%(spec)s "[%(nick)s]" has left the room "(%(status)s)"') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT, 'status': status_message.replace('"', '\\"')}) + self.get_room().add_message(_('\x191%(spec)s \x193%(nick)s\x195 has left the room (%(status)s)"') % {'nick':from_nick.replace('"', '\\"'), 'spec':theme.CHAR_QUIT, 'status': status_message.replace('"', '\\"')}) class RosterInfoTab(Tab): """ |