# HG changeset patch # User Matthew Wild # Date 1452701427 0 # Node ID cb810a2bca473a0faa467af9209e9123e093df09 # Parent c769ed3e5b2bc67a1be02dc4adabae85c0b0c2f5 mod_block_outgoing: Allow stanzas to user's login host (e.g. disco queries) diff -r c769ed3e5b2b -r cb810a2bca47 mod_block_outgoing/mod_block_outgoing.lua --- a/mod_block_outgoing/mod_block_outgoing.lua Wed Jan 13 14:56:19 2016 +0000 +++ b/mod_block_outgoing/mod_block_outgoing.lua Wed Jan 13 16:10:27 2016 +0000 @@ -12,7 +12,7 @@ local function block_stanza(event) local stanza = event.stanza; local from_jid = jid_bare(stanza.attr.from); - if stanza.attr.to == nil or is_admin(from_jid, module.host) then + if stanza.attr.to == nil or stanza.attr.to == module.host or is_admin(from_jid, module.host) then return; end if block_all or block_users:contains(from_jid) then