plugins/mod_disco.lua
changeset 8837 b0093d3b2d04
parent 8191 8c524b7c9017
child 9226 80dbb60d81e4
--- 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