self-ping: /cycle instead of /part

This commit is contained in:
Georg Lukas 2015-06-01 12:57:04 +02:00 committed by mathieui
parent 4e8cef2a77
commit a3cefc7af3
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -1694,7 +1694,7 @@ class MucTab(ChatTab):
def on_self_ping_result(self, iq):
if iq["type"] == "error":
self.command_part(iq["error"]["text"] or "not in this room")
self.command_cycle(iq["error"]["text"] or "not in this room")
self.core.refresh_window()
else: # Re-send a self-ping in a few seconds
self.enable_self_ping_event()
@ -1715,5 +1715,5 @@ class MucTab(ChatTab):
return color
def on_self_ping_failed(self, iq):
self.command_part("the MUC server is not responding")
self.command_cycle("the MUC server is not responding")
self.core.refresh_window()