# HG changeset patch # User Kim Alvefur # Date 1490311549 -3600 # Node ID 57060d0cee4b906ccc307f145ab3f53ba901a94c # Parent 6940d6db970be1382e80395f1a5f97d48711abaf mod_disco: Correctly set the 'node' attr (fixes #449) diff -r 6940d6db970b -r 57060d0cee4b plugins/mod_disco.lua --- 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;