aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-08-12 19:34:17 +0200
committerKim Alvefur <zash@zash.se>2021-08-12 19:34:17 +0200
commita049793c95cf03587465b5536fd6e962b3c92331 (patch)
treea1a04c99f9a0122ee19396009aacce03e14643d0 /plugins
parentd6122ce3a54ca33b519640746d64e1711ef4cebb (diff)
downloadprosody-a049793c95cf03587465b5536fd6e962b3c92331.tar.gz
prosody-a049793c95cf03587465b5536fd6e962b3c92331.zip
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_disco.lua6
1 files changed, 6 insertions, 0 deletions
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)