Diff

plugins/mod_disco.lua @ 8843:041ddc670934

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 30 May 2018 21:40:00 +0100
parent 8834:b0093d3b2d04
child 9223:80dbb60d81e4
line wrap: on
line diff
--- a/plugins/mod_disco.lua	Wed May 30 09:06:17 2018 +0200
+++ b/plugins/mod_disco.lua	Wed May 30 21:40:00 2018 +0100
@@ -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