summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py8
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)