From a049793c95cf03587465b5536fd6e962b3c92331 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 12 Aug 2021 19:34:17 +0200 Subject: 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. --- plugins/mod_disco.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua index a19ec32b..12e4357b 100644 --- a/plugins/mod_disco.lua +++ b/plugins/mod_disco.lua @@ -153,6 +153,12 @@ module:hook("stream-features", function (event) 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) -- cgit v1.2.3