aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-01-06 08:54:15 +0100
committerKim Alvefur <zash@zash.se>2018-01-06 08:54:15 +0100
commit7fc47fa72f188e7371f16ca5d6d6d6199bc54ef6 (patch)
tree74f9fbf9be6c227f32e3c9fefbe522ba8737577a /plugins/mod_component.lua
parentf6efb7e00f49c6133e687074e045c114ff247e00 (diff)
downloadprosody-7fc47fa72f188e7371f16ca5d6d6d6199bc54ef6.tar.gz
prosody-7fc47fa72f188e7371f16ca5d6d6d6199bc54ef6.zip
mod_component: Advertise disco#info in fallback handling of disco#info query (fixes #1062)
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r--plugins/mod_component.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 476dff8a..15f405e5 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -120,7 +120,8 @@ function module.add_host(module)
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") }))
+ :tag("identity", { category = "component", type = "generic", name = module:get_option_string("name", "Prosody") })):up()
+ :tag("feature", { var = "http://jabber.org/protocol/disco#info" }):up()
return true;
end
end