comparison mod_host_guard/mod_host_guard.lua @ 683:939f8fc84d49

mod_host_guard: removed unused variable.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 27 May 2012 01:37:25 +0000
parents 3ab1cf30a848
children 27529031890b
comparison
equal deleted inserted replaced
682:3ab1cf30a848 683:939f8fc84d49
27 27
28 return nil 28 return nil
29 end 29 end
30 30
31 local function rr_hook (event) 31 local function rr_hook (event)
32 local from_host, to_host, stanza = event.from_host, event.to_host, event.stanza 32 local from_host, to_host = event.from_host, event.to_host
33 33
34 if guard_blockall:contains(from_host) and not guard_ball_wl:contains(to_host) or 34 if guard_blockall:contains(from_host) and not guard_ball_wl:contains(to_host) or
35 guard_block_bl:contains(to_host) and guard_protect:contains(from_host) then 35 guard_block_bl:contains(to_host) and guard_protect:contains(from_host) then
36 module:log("info", "attempted to connect to a filtered remote host %s", to_host) 36 module:log("info", "attempted to connect to a filtered remote host %s", to_host)
37 return false 37 return false