From 324fcf817c3931ab0dc3c421b34e4d5ecfcfb3c6 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 17 Sep 2011 19:18:49 +0200 Subject: And fix the display of the part message in that case --- src/tabs.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit v1.2.3