From a0767a636b5f8c0ece52a4cd7ed6dca464f63074 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 28 May 2018 21:30:32 +0200 Subject: mod_disco: Skip code specific to disco on user accounts (avoids invoking usermanager, fixes #1150) --- plugins/mod_disco.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_disco.lua') diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua index cd07934f..6d3e7753 100644 --- a/plugins/mod_disco.lua +++ b/plugins/mod_disco.lua @@ -154,6 +154,7 @@ module:hook("stream-features", function (event) end); -- Handle disco requests to user accounts +if module:get_host_type() ~= "local" then return end -- skip for components module:hook("iq/bare/http://jabber.org/protocol/disco#info:query", function(event) local origin, stanza = event.origin, event.stanza; if stanza.attr.type ~= "get" then return; end -- cgit v1.2.3