summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-07-31 13:37:40 +0200
committermathieui <mathieui@mathieui.net>2012-07-31 13:38:53 +0200
commitee97ba6b6cf96d2f6f0dd67928da4f370bab9f12 (patch)
tree246f4983bc1b4ba839fa11ee23c7e5ee469c5362 /src/tabs.py
parent906c74f0bea7794ad4341b9f64ca7508e2394fff (diff)
downloadpoezio-ee97ba6b6cf96d2f6f0dd67928da4f370bab9f12.tar.gz
poezio-ee97ba6b6cf96d2f6f0dd67928da4f370bab9f12.tar.bz2
poezio-ee97ba6b6cf96d2f6f0dd67928da4f370bab9f12.tar.xz
poezio-ee97ba6b6cf96d2f6f0dd67928da4f370bab9f12.zip
Make the autorejoin option work with bans, too, and fix the documentation
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index d6369a9d..4d52a285 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1320,6 +1320,19 @@ class MucTab(ChatTab):
self.refresh_tab_win()
self.core.current_tab().input.refresh()
self.core.doupdate()
+ if config.get_by_tabname('autorejoin', 'false', self.general_jid, True) == 'true':
+ delay = config.get_by_tabname('autorejoin_delay', "5", self.general_jid, True)
+ delay = common.parse_str_to_secs(delay)
+ if delay <= 0:
+ muc.join_groupchat(self.core.xmpp, self.name, self.own_nick)
+ else:
+ self.core.add_timed_event(timed_events.DelayedEvent(
+ delay,
+ muc.join_groupchat,
+ self.core.xmpp,
+ self.name,
+ self.own_nick))
+
else:
color = user.color[0] if config.get_by_tabname('display_user_color_in_join_part', '', self.general_jid, True) == 'true' else 3
if by: