diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-09-17 19:18:49 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-09-17 19:18:49 +0200 |
commit | 324fcf817c3931ab0dc3c421b34e4d5ecfcfb3c6 (patch) | |
tree | bb21ef3fb62b5d208bff7e7008a9d1e0f823508f | |
parent | 195d461a86a020671c2cf07cb702666cf441a58d (diff) | |
download | poezio-324fcf817c3931ab0dc3c421b34e4d5ecfcfb3c6.tar.gz poezio-324fcf817c3931ab0dc3c421b34e4d5ecfcfb3c6.tar.bz2 poezio-324fcf817c3931ab0dc3c421b34e4d5ecfcfb3c6.tar.xz poezio-324fcf817c3931ab0dc3c421b34e4d5ecfcfb3c6.zip |
And fix the display of the part message in that case
-rw-r--r-- | src/tabs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py index 5f6ea890..3a93f541 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1130,6 +1130,9 @@ class PrivateTab(ChatTab): 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(_('\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('"', '\\"')}) + if self.core.current_tab() is self: + self.refresh() + self.core.doupdate() def user_rejoined(self, nick): """ @@ -1137,6 +1140,9 @@ class PrivateTab(ChatTab): """ self.activate() self.get_room().add_message('\x194%(spec)s \x193%(nick)s\x195 joined the room' % {'nick':nick, 'spec':theme.CHAR_JOIN}) + if self.core.current_tab() is self: + self.refresh() + self.core.doupdate() def activate(self): self.on = True |