# HG changeset patch # User Kim Alvefur # Date 1515225255 -3600 # Node ID 47115b0ca133b26db1c07331b0b41355ba3270c7 # Parent 9b81c22d5b542a1b8e2ae148c1ead628c44a1702 mod_component: Advertise disco#info in fallback handling of disco#info query (fixes #1062) diff -r 9b81c22d5b54 -r 47115b0ca133 plugins/mod_component.lua --- 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