diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-25 13:56:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-25 13:56:35 +0100 |
commit | 3172ef56f69a3733c326455c906b94715ff47d40 (patch) | |
tree | d82c6334d935dde5036d92f8ccefb07a2e38dbcb /src/plugins/lua/settings.lua | |
parent | f78e460fed2360562d16eade74e4708810f392f3 (diff) | |
download | rspamd-3172ef56f69a3733c326455c906b94715ff47d40.tar.gz rspamd-3172ef56f69a3733c326455c906b94715ff47d40.zip |
Adopt settings.
Diffstat (limited to 'src/plugins/lua/settings.lua')
-rw-r--r-- | src/plugins/lua/settings.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 84825dbbd..c5c608f6d 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -6,6 +6,9 @@ local set_section = rspamd_config:get_key("settings") local settings = {} local settings_initialized = false local max_pri = 0 +local rspamd_logger = require "rspamd_logger" +local rspamd_ip = require "rspamd_ip" +local rspamd_regexp = require "rspamd_regexp" -- Functional utilities local function filter(func, tbl) @@ -209,7 +212,7 @@ local function process_settings_table(tbl) local start = string.sub(addr, 1, 1) if start == '/' then -- It is a regexp - local re = regexp.create(addr) + local re = rspamd_regexp.create(addr) if re then out['regexp'] = re setmetatable(out, { |