aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-08 11:53:10 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-08 11:53:10 +0200
commit6df01cf6058e1a550993e0f8357b0324244ccc02 (patch)
tree9827589bf4ee851fcfc22f664d82ab43444c3f6e /plugins/mod_component.lua
parent0f862ef0033877609752730f7b8d12d2ab8247e7 (diff)
downloadprosody-6df01cf6058e1a550993e0f8357b0324244ccc02.tar.gz
prosody-6df01cf6058e1a550993e0f8357b0324244ccc02.zip
mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164.
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 15f405e5..4a210495 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