diff options
author | mathieui <mathieui@mathieui.net> | 2012-05-10 11:00:34 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-05-10 11:00:34 +0200 |
commit | dfa8f33c67072162315662340fa7294a539e1fb0 (patch) | |
tree | 24bffd381b7cc99791512035ea4ab962fa3294e1 /src/core.py | |
parent | fc3a791188885d480c4d7a9fe23f209bfe35eb84 (diff) | |
download | poezio-dfa8f33c67072162315662340fa7294a539e1fb0.tar.gz poezio-dfa8f33c67072162315662340fa7294a539e1fb0.tar.bz2 poezio-dfa8f33c67072162315662340fa7294a539e1fb0.tar.xz poezio-dfa8f33c67072162315662340fa7294a539e1fb0.zip |
Fix the usr join/rejoin when someone gets kicked or banned
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.py b/src/core.py index 67c110eb..9b704682 100644 --- a/src/core.py +++ b/src/core.py @@ -793,21 +793,21 @@ class Core(object): if tab: tab.user_rejoined(nick) - def disable_private_tabs(self, room_name): + def disable_private_tabs(self, room_name, reason='\x195}You left the chatroom\x193}'): """ Disable private tabs when leaving a room """ for tab in self.tabs: if tab.get_name().startswith(room_name) and isinstance(tab, tabs.PrivateTab): - tab.deactivate() + tab.deactivate(reason=reason) - def enable_private_tabs(self,room_name): + def enable_private_tabs(self, room_name, reason='\x195}You joined the chatroom\x193}'): """ Enable private tabs when joining a room """ for tab in self.tabs: if tab.get_name().startswith(room_name) and isinstance(tab, tabs.PrivateTab): - tab.activate() + tab.activate(reason=reason) def on_user_changed_status_in_private(self, jid, msg): tab = self.get_tab_by_name(jid) |