summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-17 18:59:32 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-17 18:59:32 +0200
commit195d461a86a020671c2cf07cb702666cf441a58d (patch)
treedddadb8740231a5956d6b1812f9eb6551757a3b5 /src
parent02593a265ef292b5095ab7db4de4e81a3cfd1e37 (diff)
parent900bf8c97ac2c4ce03b42892d8468a1c938ac567 (diff)
downloadpoezio-195d461a86a020671c2cf07cb702666cf441a58d.tar.gz
poezio-195d461a86a020671c2cf07cb702666cf441a58d.tar.bz2
poezio-195d461a86a020671c2cf07cb702666cf441a58d.tar.xz
poezio-195d461a86a020671c2cf07cb702666cf441a58d.zip
merge
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py8
1 files 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