diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-11 13:57:56 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-11 15:30:30 +0000 |
commit | 82ca7ec2ac7f02f67304e1ed7b6859cabdfeae22 (patch) | |
tree | fe9e36215a195ae9cd40be7d7eea0fe3f10e0408 /src/lua/lua_expression.c | |
parent | 7ff0c15b188eacd7051c174633c1779809f28352 (diff) | |
download | rspamd-82ca7ec2ac7f02f67304e1ed7b6859cabdfeae22.tar.gz rspamd-82ca7ec2ac7f02f67304e1ed7b6859cabdfeae22.zip |
[Rework] Replace controller functions by any scanner worker if needed
Diffstat (limited to 'src/lua/lua_expression.c')
-rw-r--r-- | src/lua/lua_expression.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c index 60ee8fdf7..b2addd30c 100644 --- a/src/lua/lua_expression.c +++ b/src/lua/lua_expression.c @@ -36,12 +36,12 @@ local rspamd_mempool = require "rspamd_mempool" local function parse_func(str) -- extract token till the first space character - local token = table.join('', take_while(function(s) return s ~= ' ' end, str)) + local token = table.concat(totable(take_while(function(s) return s ~= ' ' end, iter(str)))) -- Return token name return token end -local function process_func(token, task) +local function process_func(token) -- Do something using token and task end |