comparison mod_host_guard/mod_host_guard.lua @ 686:592cfa6cf5d9

mod_host_guard: remove unused import.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 27 May 2012 04:58:07 +0000
parents 19698c5f3ab3
children b94010de43f6
comparison
equal deleted inserted replaced
685:19698c5f3ab3 686:592cfa6cf5d9
8 local guard_protect = module:get_option_set("host_guard_selective", {}) 8 local guard_protect = module:get_option_set("host_guard_selective", {})
9 local guard_block_bl = module:get_option_set("host_guard_blacklist", {}) 9 local guard_block_bl = module:get_option_set("host_guard_blacklist", {})
10 10
11 local config = require "core.configmanager" 11 local config = require "core.configmanager"
12 local error_reply = require "util.stanza".error_reply 12 local error_reply = require "util.stanza".error_reply
13 local nameprep = require "util.encodings".stringprep.nameprep
14 13
15 local function s2s_hook (event) 14 local function s2s_hook (event)
16 local origin, stanza = event.session or event.origin, event.stanza or false 15 local origin, stanza = event.session or event.origin, event.stanza or false
17 local to_host, from_host = (not stanza and origin.to_host) or stanza.attr.to, (not stanza and origin.from_host) or stanza.attr.from 16 local to_host, from_host = (not stanza and origin.to_host) or stanza.attr.to, (not stanza and origin.from_host) or stanza.attr.from
18 17