Carry the node attribute to the disco#info result.

Fixes #3323.
This commit is contained in:
Emmanuel Gil Peyrot 2018-03-14 16:25:21 +01:00
parent 841f5a5a5b
commit 2f1225bad3

View File

@ -646,9 +646,11 @@ class XEP_0030(BasePlugin):
info['id'] = iq['id']
info.send()
else:
node = iq['disco_info']['node']
iq = iq.reply()
if info:
info = self._fix_default_info(info)
info['node'] = node
iq.set_payload(info.xml)
iq.send()
elif iq['type'] == 'result':