From 39ed7e35cc1f2a6838742ad47c7f83a87d8f92af Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 26 May 2015 20:49:46 +0200 Subject: Disable the MUC self ping by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because it doesn’t work, due to a lot of factors, and we can’t fix them. --- src/config.py | 1 + src/tabs/muctab.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 3ca53dd2..a6f1417e 100644 --- a/src/config.py +++ b/src/config.py @@ -98,6 +98,7 @@ DEFAULT_CONFIG = { 'roster_show_offline': False, 'roster_sort': 'jid:show', 'save_status': True, + 'self_ping_delay': 0, 'send_chat_states': True, 'send_initial_presence': True, 'send_os_info': True, diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py index d4b13258..bb0f51d9 100644 --- a/src/tabs/muctab.py +++ b/src/tabs/muctab.py @@ -1667,7 +1667,7 @@ class MucTab(ChatTab): return [(1, safeJID(self.name).user), (3, self.name)] def enable_self_ping_event(self): - delay = config.get_by_tabname("self_ping_delay", self.general_jid, default=60) + delay = config.get_by_tabname("self_ping_delay", self.general_jid, default=0) if delay <= 0: # use 0 or some negative value to disable it return self.self_ping_event = timed_events.DelayedEvent(delay, self.send_self_ping) -- cgit v1.2.3