diff options
author | mathieui <mathieui@mathieui.net> | 2016-10-27 00:18:43 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-10-27 00:18:43 +0200 |
commit | 3569038493a0b1f20409f8e02bbe600cbc7b7c52 (patch) | |
tree | 77756a4770bb1da9883fadfa447bd57e12fb50f7 | |
parent | 20c4ff823afff78159218ad1ec1d6338700f7eca (diff) | |
download | slixmpp-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.py | 2 |
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' |