From 900bf8c97ac2c4ce03b42892d8468a1c938ac567 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 17 Sep 2011 18:59:14 +0200 Subject: Fix a bug where the private tabs would pop on the screen when the user parts or join the associated room --- src/tabs.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tabs.py b/src/tabs.py index 257b7bd5..5f6ea890 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1125,22 +1125,18 @@ class PrivateTab(ChatTab): """ The user left the associated MUC """ + self.deactivate() if not status_message: 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('"', '\\"')}) - self.deactivate() - self.refresh() - self.core.doupdate() def user_rejoined(self, nick): """ The user (or at least someone with the same nick) came back in the MUC """ - self.get_room().add_message('\x194%(spec)s \x193%(nick)s\x195 joined the room' % {'nick':nick, 'spec':theme.CHAR_JOIN}) self.activate() - self.refresh() - self.core.doupdate() + self.get_room().add_message('\x194%(spec)s \x193%(nick)s\x195 joined the room' % {'nick':nick, 'spec':theme.CHAR_JOIN}) def activate(self): self.on = True -- cgit v1.2.3