--- a/plugins/mod_component.lua Fri Dec 29 20:49:19 2017 +0100
+++ b/plugins/mod_component.lua Sat Jan 06 08:54:15 2018 +0100
@@ -120,7 +120,8 @@
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