summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-14 16:25:21 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-14 16:25:21 +0100
commit2f1225bad3d89f03a3251696abd7e30807ca4d6b (patch)
treedce7dd2ea879dcb129f5420943fb071ee845c9bc
parent841f5a5a5beeecc4579bc91ac796cb44fdc7b47f (diff)
downloadslixmpp-2f1225bad3d89f03a3251696abd7e30807ca4d6b.tar.gz
slixmpp-2f1225bad3d89f03a3251696abd7e30807ca4d6b.tar.bz2
slixmpp-2f1225bad3d89f03a3251696abd7e30807ca4d6b.tar.xz
slixmpp-2f1225bad3d89f03a3251696abd7e30807ca4d6b.zip
Carry the node attribute to the disco#info result.
Fixes #3323.
-rw-r--r--slixmpp/plugins/xep_0030/disco.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py
index e6286b92..166ad981 100644
--- a/slixmpp/plugins/xep_0030/disco.py
+++ b/slixmpp/plugins/xep_0030/disco.py
@@ -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':