self-ping: match error responses to XEP-0410

This commit is contained in:
Georg Lukas 2019-02-25 10:03:59 +01:00 committed by Maxime “pep” Buquet
parent f7e3e003a2
commit 8cbd8dabdd

View file

@ -1151,7 +1151,8 @@ class MucTab(ChatTab):
timeout=timeout)
def on_self_ping_result(self, iq):
if iq["type"] == "error" and iq["error"]["condition"] != "feature-not-implemented":
if iq["type"] == "error" and iq["error"]["condition"] not in \
("feature-not-implemented", "service-unavailable", "item-not-found"):
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