Changeset

1181:005b0429cf46

mod_host_blacklist: Small fix
author Matthew Wild <mwild1@gmail.com>
date Tue, 03 Sep 2013 11:15:18 +0100
parents 1180:513aa2e0c045
children 1182:547b3c05cc06
files mod_host_blacklist/mod_host_blacklist.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_host_blacklist/mod_host_blacklist.lua	Tue Sep 03 11:07:00 2013 +0100
+++ b/mod_host_blacklist/mod_host_blacklist.lua	Tue Sep 03 11:15:18 2013 +0100
@@ -7,7 +7,7 @@
 
 local function stanza_checker(attr)
 	return function (event)
-		local host = select(2, jid_split(stanza.attr[attr]));
+		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"));
 		end