diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-09-01 10:22:50 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-09-01 10:22:50 +0200 |
commit | 47fb93233a3f9ee2ca1c49d802113a392b660df4 (patch) | |
tree | b95dc29ef9ddadf6ad1173ef25e9e4533feb3719 /src/plugins/lua/emails.lua | |
parent | eb7db9325e5460cd9980fcf24805aaa0c0659668 (diff) | |
download | rspamd-47fb93233a3f9ee2ca1c49d802113a392b660df4.tar.gz rspamd-47fb93233a3f9ee2ca1c49d802113a392b660df4.zip |
[Fix] Banish table.maxn from Lua parts
Diffstat (limited to 'src/plugins/lua/emails.lua')
-rw-r--r-- | src/plugins/lua/emails.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua index 862d82725..9d9a54d03 100644 --- a/src/plugins/lua/emails.lua +++ b/src/plugins/lua/emails.lua @@ -107,7 +107,7 @@ if opts and type(opts) == 'table' then end end -if table.maxn(rules) > 0 then +if #rules > 0 then -- add fake symbol to check all maps inside a single callback local id = rspamd_config:register_symbol({ type = 'callback', |