From df49d59a9262c65276dbb5c037f8377b80eb1e06 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 8 Jun 2018 11:53:10 +0200 Subject: mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164. --- plugins/mod_component.lua | 7 ++++--- 1 file 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 -- cgit v1.2.3