aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit38060a5ccf530be01713f5055377ff840dd77145 (patch)
tree74f9fbf9be6c227f32e3c9fefbe522ba8737577a /plugins
parent76d18a84640f7083f658776d66a7833f067e0377 (diff)
downloadprosody-38060a5ccf530be01713f5055377ff840dd77145.tar.gz
prosody-38060a5ccf530be01713f5055377ff840dd77145.zip
mod_component: Advertise disco#info in fallback handling of disco#info query (fixes #1062)
Diffstat (limited to 'plugins')
-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