diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-08 11:53:10 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-08 11:53:10 +0200 |
commit | df49d59a9262c65276dbb5c037f8377b80eb1e06 (patch) | |
tree | 9827589bf4ee851fcfc22f664d82ab43444c3f6e /plugins | |
parent | 0ff1619ea4e2a6702a3fb70135fb656efd64790b (diff) | |
download | prosody-df49d59a9262c65276dbb5c037f8377b80eb1e06.tar.gz prosody-df49d59a9262c65276dbb5c037f8377b80eb1e06.zip |
mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_component.lua | 7 |
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 |