# HG changeset patch # User Kim Alvefur # Date 1527535832 -7200 # Node ID b0093d3b2d04b20fe8e057c106a8ddbcda790f2f # Parent 1a29b56a2d63ff1e4e473ea2537a9c26b4d0df50 mod_disco: Skip code specific to disco on user accounts (avoids invoking usermanager, fixes #1150) diff -r 1a29b56a2d63 -r b0093d3b2d04 plugins/mod_disco.lua --- a/plugins/mod_disco.lua Fri May 25 03:30:16 2018 +0200 +++ b/plugins/mod_disco.lua Mon May 28 21:30:32 2018 +0200 @@ -154,6 +154,7 @@ 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