Changeset

1182:547b3c05cc06

mod_host_blacklist: Bigger fix: return true to block original stanza (thanks Zash)
author Matthew Wild <mwild1@gmail.com>
date Tue, 03 Sep 2013 11:19:31 +0100
parents 1181:005b0429cf46
children 1183:3acb01ca7e5c
files mod_host_blacklist/mod_host_blacklist.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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