From 3172ef56f69a3733c326455c906b94715ff47d40 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 25 Aug 2014 13:56:35 +0100 Subject: [PATCH] Adopt settings. --- src/plugins/lua/settings.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, { -- 2.39.5