Changeset

8508:47115b0ca133

mod_component: Advertise disco#info in fallback handling of disco#info query (fixes #1062)
author Kim Alvefur <zash@zash.se>
date Sat, 06 Jan 2018 08:54:15 +0100
parents 8496:9b81c22d5b54
children 8509:e1d274001855
files plugins/mod_component.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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