summaryrefslogtreecommitdiff
path: root/src/tabs
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-07-31 16:49:15 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-07-31 16:49:50 +0200
commitd226c60997b8b65d17a1ba706aed59a8400dd757 (patch)
tree6e050bc90020d1d63bac6b9aaf6a94aab34f95f2 /src/tabs
parent2cc9918ee9112a2f9bfc9fa53ee3b0788b2501ad (diff)
downloadpoezio-d226c60997b8b65d17a1ba706aed59a8400dd757.tar.gz
poezio-d226c60997b8b65d17a1ba706aed59a8400dd757.tar.bz2
poezio-d226c60997b8b65d17a1ba706aed59a8400dd757.tar.xz
poezio-d226c60997b8b65d17a1ba706aed59a8400dd757.zip
Only reset the self-ping event timer if there was already an enabled timer
Otherwise we could, for example, enable a self-ping event on non-joined rooms where we just displayed an error message. And that’s bad.
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/muctab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py
index e7be0597..38592dff 100644
--- a/src/tabs/muctab.py
+++ b/src/tabs/muctab.py
@@ -1618,7 +1618,8 @@ class MucTab(ChatTab):
"""
# reset self-ping interval
- self.enable_self_ping_event()
+ if self.self_ping_event:
+ self.enable_self_ping_event()
self.log_message(txt, nickname, time=time, typ=kwargs.get('typ', 1))
args = dict()