summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2019-02-25 10:03:59 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-03-17 11:22:12 +0000
commit8cbd8dabdd23bb268b4431d6d9443abfb88e79d9 (patch)
treead804ff81191ee4b3d9d65625eb67c3cec832cd8
parentf7e3e003a275add685eb32e2c6aea18e7a322c7f (diff)
downloadpoezio-8cbd8dabdd23bb268b4431d6d9443abfb88e79d9.tar.gz
poezio-8cbd8dabdd23bb268b4431d6d9443abfb88e79d9.tar.bz2
poezio-8cbd8dabdd23bb268b4431d6d9443abfb88e79d9.tar.xz
poezio-8cbd8dabdd23bb268b4431d6d9443abfb88e79d9.zip
self-ping: match error responses to XEP-0410
-rw-r--r--poezio/tabs/muctab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 80631388..41a8e089 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -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