self-ping: match error responses to XEP-0410
This commit is contained in:
parent
f7e3e003a2
commit
8cbd8dabdd
1 changed files with 2 additions and 1 deletions
|
@ -1151,7 +1151,8 @@ class MucTab(ChatTab):
|
||||||
timeout=timeout)
|
timeout=timeout)
|
||||||
|
|
||||||
def on_self_ping_result(self, iq):
|
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.command_cycle(iq["error"]["text"] or "not in this room")
|
||||||
self.core.refresh_window()
|
self.core.refresh_window()
|
||||||
else: # Re-send a self-ping in a few seconds
|
else: # Re-send a self-ping in a few seconds
|
||||||
|
|
Loading…
Reference in a new issue