summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-05 12:26:50 +0000
committerGitHub <noreply@github.com>2016-11-05 12:26:50 +0000
commite22796aed74cbb8ab831bf22717bfb0d39c868f2 (patch)
tree81e0629bb585940d21cb57f8966ffb4c051d4d86 /src/plugins/lua
parentb50a6adffdd69334591b89ef07f3194cadb7d97c (diff)
parentf13aa16ee4785ba47530f09190c3d48aa659f162 (diff)
downloadrspamd-e22796aed74cbb8ab831bf22717bfb0d39c868f2.tar.gz
rspamd-e22796aed74cbb8ab831bf22717bfb0d39c868f2.zip
Merge pull request #1103 from moisseev/patch-3
[Minor] Add missing `fun` module local reference
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/dcc.lua2
-rw-r--r--src/plugins/lua/settings.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/dcc.lua b/src/plugins/lua/dcc.lua
index 08fca893f..cd8f76de2 100644
--- a/src/plugins/lua/dcc.lua
+++ b/src/plugins/lua/dcc.lua
@@ -49,7 +49,7 @@ local function check_dcc (task)
local envrcpt = 'test@example.com'
local rcpts = task:get_recipients();
if rcpts then
- local r = table.concat(fun.totable(map(function(rcpt)
+ local r = table.concat(fun.totable(fun.map(function(rcpt)
return rcpt['addr'] end,
rcpts)), '\n')
if r then
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index b9a598ea3..06573ffd7 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -468,7 +468,7 @@ local function process_settings_table(tbl)
settings_initialized = false
-- filter trash in the input
- local ft = filter(
+ local ft = fun.filter(
function(_, elt)
if type(elt) == "table" then
return true