Pass the Iq stanza to disco item handlers.

This commit is contained in:
Lance Stout 2011-12-12 16:34:24 -08:00
parent 62e6d6fb4c
commit 85e9042db6

View file

@ -579,7 +579,8 @@ class xep_0030(base_plugin):
jid = iq['to'].bare
items = self._run_node_handler('get_items',
jid,
iq['disco_items']['node'])
iq['disco_items']['node'],
iq)
iq.reply()
if items:
iq.set_payload(items.xml)