summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0009/rpc.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0009/rpc.py')
-rw-r--r--slixmpp/plugins/xep_0009/rpc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0009/rpc.py b/slixmpp/plugins/xep_0009/rpc.py
index 3ce156cf..f92844ec 100644
--- a/slixmpp/plugins/xep_0009/rpc.py
+++ b/slixmpp/plugins/xep_0009/rpc.py
@@ -24,7 +24,7 @@ class XEP_0009(BasePlugin):
name = 'xep_0009'
description = 'XEP-0009: Jabber-RPC'
- dependencies = set(['xep_0030'])
+ dependencies = {'xep_0030'}
stanza = stanza
def plugin_init(self):
@@ -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'