aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_maps_expressions.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-20 16:58:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-20 16:58:27 +0100
commit5aefad0f52cabf4dacdf85d69a93ff3d9596f6d4 (patch)
tree40d36d3ddf2b20b103b9172fe3b489756f1d09b7 /lualib/lua_maps_expressions.lua
parente1a545a035310f312bf9750f9603b7f3a456a78a (diff)
downloadrspamd-5aefad0f52cabf4dacdf85d69a93ff3d9596f6d4.tar.gz
rspamd-5aefad0f52cabf4dacdf85d69a93ff3d9596f6d4.zip
[Minor] Fix selectors usage
Diffstat (limited to 'lualib/lua_maps_expressions.lua')
-rw-r--r--lualib/lua_maps_expressions.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lualib/lua_maps_expressions.lua b/lualib/lua_maps_expressions.lua
index f0b1f176a..61d2e1186 100644
--- a/lualib/lua_maps_expressions.lua
+++ b/lualib/lua_maps_expressions.lua
@@ -122,7 +122,7 @@ local function create(cfg, obj, module_name)
}
for name,rule in pairs(obj.rules) do
- local sel = lua_selectors.parse_selector(cfg, rule.selector)
+ local sel = lua_selectors.create_selector_closure(cfg, rule.selector)
if not sel then
rspamd_logger.errx(cfg, 'cannot add selector for element %s in module %s',
@@ -176,7 +176,8 @@ local function create(cfg, obj, module_name)
return nil
end
- local expr = rspamd_expression.create(obj.expression, parse_atom, rspamd_config:get_mempool())
+ local expr = rspamd_expression.create(obj.expression, parse_atom,
+ rspamd_config:get_mempool())
if not expr then
rspamd_logger.errx(cfg, 'cannot add map expression for module %s',