From 8a2a50c07a67d4d072e3dd045f9b0058e967fc0e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 24 Mar 2017 00:25:49 +0100 Subject: mod_disco: Correctly set the 'node' attr (fixes #449) --- plugins/mod_disco.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua index 72c9a34c..b41f9651 100644 --- a/plugins/mod_disco.lua +++ b/plugins/mod_disco.lua @@ -99,7 +99,7 @@ module:hook("iq/host/http://jabber.org/protocol/disco#info:query", function(even 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; -- cgit v1.2.3