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
commitba5f71d08bb7a796a00766d9a6b739e10a0d0623 (patch)
tree9827589bf4ee851fcfc22f664d82ab43444c3f6e /plugins/mod_component.lua
parent29ebeb2da4fb62c8bfb3fe278e7908c07204be78 (diff)
downloadprosody-ba5f71d08bb7a796a00766d9a6b739e10a0d0623.tar.gz
prosody-ba5f71d08bb7a796a00766d9a6b739e10a0d0623.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