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.
This commit is contained in:
parent
2cc9918ee9
commit
d226c60997
1 changed files with 2 additions and 1 deletions
|
@ -1618,7 +1618,8 @@ class MucTab(ChatTab):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# reset self-ping interval
|
# 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))
|
self.log_message(txt, nickname, time=time, typ=kwargs.get('typ', 1))
|
||||||
args = dict()
|
args = dict()
|
||||||
|
|
Loading…
Reference in a new issue