# HG changeset patch # User Matthew Wild # Date 1378203571 -3600 # Node ID 547b3c05cc0660b0a1a313a0e09a0af8a8142f97 # Parent 005b0429cf4662fac2143b6dea97cca8b532aad3 mod_host_blacklist: Bigger fix: return true to block original stanza (thanks Zash) diff -r 005b0429cf46 -r 547b3c05cc06 mod_host_blacklist/mod_host_blacklist.lua --- a/mod_host_blacklist/mod_host_blacklist.lua Tue Sep 03 11:15:18 2013 +0100 +++ b/mod_host_blacklist/mod_host_blacklist.lua Tue Sep 03 11:19:31 2013 +0100 @@ -10,6 +10,7 @@ local host = select(2, jid_split(event.stanza.attr[attr])); if blacklist:contains(host) then module:send(st.error_reply(event.stanza, "cancel", "not-allowed", "Communication with this domain is restricted")); + return true; end end end