aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_disco.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-24 00:25:49 +0100
committerKim Alvefur <zash@zash.se>2017-03-24 00:25:49 +0100
commit12e5d691c25fddbcb8ff2e24583cc2a3ffa651e1 (patch)
tree67009dfef0897bae451e4f61375de61a1c624406 /plugins/mod_disco.lua
parentf872ab669526312f0e12c4f4b44811bd45dff677 (diff)
downloadprosody-12e5d691c25fddbcb8ff2e24583cc2a3ffa651e1.tar.gz
prosody-12e5d691c25fddbcb8ff2e24583cc2a3ffa651e1.zip
mod_disco: Correctly set the 'node' attr (fixes #449)
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r--plugins/mod_disco.lua2
1 files changed, 1 insertions, 1 deletions
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;