Diff

mod_host_guard/mod_host_guard.lua @ 724:b94010de43f6

mod_host_guard: referenced configmanager from prosody's _G instead of requiring it.
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 25 Jun 2012 22:32:54 +0000
parent 686:592cfa6cf5d9
child 725:f79fda2d7e51
line wrap: on
line diff
--- a/mod_host_guard/mod_host_guard.lua	Mon Jun 25 22:20:27 2012 +0000
+++ b/mod_host_guard/mod_host_guard.lua	Mon Jun 25 22:32:54 2012 +0000
@@ -8,7 +8,7 @@
 local guard_protect = module:get_option_set("host_guard_selective", {})
 local guard_block_bl = module:get_option_set("host_guard_blacklist", {})
 
-local config = require "core.configmanager"
+local config = configmanager
 local error_reply = require "util.stanza".error_reply
 
 local function s2s_hook (event)