diff options
author | Kim Alvefur <zash@zash.se> | 2018-05-28 21:30:32 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-05-28 21:30:32 +0200 |
commit | 6ffc284344997c513d3b71135cc21cce9f4dce0b (patch) | |
tree | d7a4cb6a34f3cfc623cd2e133af261c3b918ddc6 /plugins | |
parent | 21a09c72f6a0e6052ae9bdcdac0e1c13051a2161 (diff) | |
download | prosody-6ffc284344997c513d3b71135cc21cce9f4dce0b.tar.gz prosody-6ffc284344997c513d3b71135cc21cce9f4dce0b.zip |
mod_disco: Skip code specific to disco on user accounts (avoids invoking usermanager, fixes #1150)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_disco.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |