XEP-0009: fix a traceback on recipient unavailable

(probably a past typo)
This commit is contained in:
mathieui 2016-10-27 00:18:43 +02:00
parent 20c4ff823a
commit 3569038493

View file

@ -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'