Software /
code /
prosody
Changeset
8886:9aa35cb939ac
mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 08 Jun 2018 11:53:10 +0200 |
parents | 8881:a0de4fc4acd5 |
children | 8887:c47f220580fd |
files | plugins/mod_component.lua |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_component.lua Thu Jun 07 11:21:51 2018 +0100 +++ b/plugins/mod_component.lua Fri Jun 08 11:53:10 2018 +0200 @@ -119,9 +119,10 @@ 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