plugins/mod_component.lua
changeset 8511 47115b0ca133
parent 8237 97b3ca502547
child 8521 0de0018bdf91
child 8889 9aa35cb939ac
--- 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