From 3569038493a0b1f20409f8e02bbe600cbc7b7c52 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 27 Oct 2016 00:18:43 +0200 Subject: XEP-0009: fix a traceback on recipient unavailable (probably a past typo) --- slixmpp/plugins/xep_0009/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0009/rpc.py b/slixmpp/plugins/xep_0009/rpc.py index 60ee3b9b..f92844ec 100644 --- a/slixmpp/plugins/xep_0009/rpc.py +++ b/slixmpp/plugins/xep_0009/rpc.py @@ -121,7 +121,7 @@ class XEP_0009(BasePlugin): def _recipient_unvailable(self, iq): payload = iq.get_payload() iq = iq.reply() - error().set_payload(payload) + iq.error().set_payload(payload) iq['error']['code'] = '404' iq['error']['type'] = 'wait' iq['error']['condition'] = 'recipient-unavailable' -- cgit v1.2.3