Software /
code /
prosody
Diff
plugins/mod_disco.lua @ 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 |
parent | 5081:c0c060e450be |
child | 8003:15973ade9a11 |
child | 8155:f0d847316723 |
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;