summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-27 00:18:43 +0200
committermathieui <mathieui@mathieui.net>2016-10-27 00:18:43 +0200
commit3569038493a0b1f20409f8e02bbe600cbc7b7c52 (patch)
tree77756a4770bb1da9883fadfa447bd57e12fb50f7
parent20c4ff823afff78159218ad1ec1d6338700f7eca (diff)
downloadslixmpp-3569038493a0b1f20409f8e02bbe600cbc7b7c52.tar.gz
slixmpp-3569038493a0b1f20409f8e02bbe600cbc7b7c52.tar.bz2
slixmpp-3569038493a0b1f20409f8e02bbe600cbc7b7c52.tar.xz
slixmpp-3569038493a0b1f20409f8e02bbe600cbc7b7c52.zip
XEP-0009: fix a traceback on recipient unavailable
(probably a past typo)
-rw-r--r--slixmpp/plugins/xep_0009/rpc.py2
1 files changed, 1 insertions, 1 deletions
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'