aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-08 16:15:32 +0200
committerKim Alvefur <zash@zash.se>2018-06-08 16:15:32 +0200
commitfd873fa69344b42bdd648ea6115f1856ca738eb1 (patch)
treef9ef6854b63e7638dee3dd6ec46d6301d009494a /plugins/mod_component.lua
parentfb4b9afe24bf079e66f1aa9870fec02c34a5c6c7 (diff)
parent1b392befb7610cd3286312a01c9bef649ec87fc8 (diff)
downloadprosody-fd873fa69344b42bdd648ea6115f1856ca738eb1.tar.gz
prosody-fd873fa69344b42bdd648ea6115f1856ca738eb1.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r--plugins/mod_component.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 46db31b6..743a16a3 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -119,9 +119,10 @@ function module.add_host(module)
if query.name == "query" and query.attr.xmlns == "http://jabber.org/protocol/disco#info" and (not node or node == "") then
local name = module:get_option_string("name");
if name then
- event.origin.send(st.reply(stanza):tag("query", { xmlns = "http://jabber.org/protocol/disco#info" })
- :tag("identity", { category = "component", type = "generic", name = module:get_option_string("name", "Prosody") })):up()
- :tag("feature", { var = "http://jabber.org/protocol/disco#info" }):up()
+ local reply = st.reply(stanza):tag("query", { xmlns = "http://jabber.org/protocol/disco#info" })
+ :tag("identity", { category = "component", type = "generic", name = module:get_option_string("name", "Prosody") }):up()
+ :tag("feature", { var = "http://jabber.org/protocol/disco#info" }):up();
+ event.origin.send(reply);
return true;
end
end