aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/dcc.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-04 18:30:00 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-04 18:30:00 +0200
commitef834351aeca4bf4c1755347692f559c6b0cc267 (patch)
tree38c379473bb712e6f5cb00e1a5d2356d43f62d41 /src/plugins/lua/dcc.lua
parent057462c67dd333292ca70c5b4a2a31eeb04c735c (diff)
downloadrspamd-ef834351aeca4bf4c1755347692f559c6b0cc267.tar.gz
rspamd-ef834351aeca4bf4c1755347692f559c6b0cc267.zip
[Minor] Remove more globals
Diffstat (limited to 'src/plugins/lua/dcc.lua')
-rw-r--r--src/plugins/lua/dcc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/dcc.lua b/src/plugins/lua/dcc.lua
index 216139fab..08fca893f 100644
--- a/src/plugins/lua/dcc.lua
+++ b/src/plugins/lua/dcc.lua
@@ -21,7 +21,7 @@ local symbol_bulk = "DCC_BULK"
local opts = rspamd_config:get_all_opt('dcc')
local logger = require "rspamd_logger"
local tcp = require "rspamd_tcp"
-require "fun" ()
+local fun = require "fun"
local function check_dcc (task)
-- Connection
@@ -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(totable(map(function(rcpt)
+ local r = table.concat(fun.totable(map(function(rcpt)
return rcpt['addr'] end,
rcpts)), '\n')
if r then