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 | b3ad69c25f181e79ca7018ba54931793744b0886 (patch) | |
tree | 9827589bf4ee851fcfc22f664d82ab43444c3f6e | |
parent | daf39c2f4736e55e4a776e0be61b5596b3b4a4b6 (diff) | |
download | prosody-b3ad69c25f181e79ca7018ba54931793744b0886.tar.gz prosody-b3ad69c25f181e79ca7018ba54931793744b0886.zip |
mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164.
-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 |