# HG changeset patch # User Kim Alvefur # Date 1628789657 -7200 # Node ID 59cf555b4698c720febb2d81a122c83f15091bdd # Parent ddb87df3de302fc0fefdd086db6c64e221621081 mod_disco: Send XEP-0115 caps in s2s stream features Not currently used for anything, but allowed and could be used in the future and might be used by other servers. diff -r ddb87df3de30 -r 59cf555b4698 plugins/mod_disco.lua --- a/plugins/mod_disco.lua Wed Aug 11 14:55:59 2021 +0200 +++ b/plugins/mod_disco.lua Thu Aug 12 19:34:17 2021 +0200 @@ -153,6 +153,12 @@ end end); +module:hook("s2s-stream-features", function (event) + if event.origin.type == "s2sin" then + event.features:add_child(get_server_caps_feature()); + end +end); + -- Handle disco requests to user accounts if module:get_host_type() ~= "local" then return end -- skip for components module:hook("iq-get/bare/http://jabber.org/protocol/disco#info:query", function(event)