Changeset

8002:57060d0cee4b

mod_disco: Correctly set the 'node' attr (fixes #449)
author Kim Alvefur <zash@zash.se>
date Fri, 24 Mar 2017 00:25:49 +0100
parents 7939:6940d6db970b
children 8003:15973ade9a11 8093:8d1fd6d34bda
files plugins/mod_disco.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_disco.lua	Thu Mar 02 15:17:32 2017 +0100
+++ b/plugins/mod_disco.lua	Fri Mar 24 00:25:49 2017 +0100
@@ -99,7 +99,7 @@
 	local node = stanza.tags[1].attr.node;
 	if node and node ~= "" and node ~= "http://prosody.im#"..get_server_caps_hash() then return; end -- TODO fire event?
 	local reply_query = get_server_disco_info();
-	reply_query.node = node;
+	reply_query.attr.node = node;
 	local reply = st.reply(stanza):add_child(reply_query);
 	origin.send(reply);
 	return true;