diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-02 10:20:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-02 10:20:33 +0100 |
commit | 04973acecb84a49db7e156db6d152b4ff78e0e48 (patch) | |
tree | 1285e7bc71ac0143b1f65ad38403091f0f0c6a68 /lualib/lua_meta.lua | |
parent | 647986d925162a8bd1ee18dde1b074e3edabb22d (diff) | |
download | rspamd-04973acecb84a49db7e156db6d152b4ff78e0e48.tar.gz rspamd-04973acecb84a49db7e156db6d152b4ff78e0e48.zip |
[Minor] Fix field name -> names
Diffstat (limited to 'lualib/lua_meta.lua')
-rw-r--r-- | lualib/lua_meta.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lualib/lua_meta.lua b/lualib/lua_meta.lua index deca2a58c..f2b008dd4 100644 --- a/lualib/lua_meta.lua +++ b/lualib/lua_meta.lua @@ -449,7 +449,8 @@ local function rspamd_gen_metatokens(task, names) for _,mt in ipairs(metafunctions) do local ct = mt.cb(task) for i,tok in ipairs(ct) do - lua_util.debugm(N, task, "metatoken: %s = %s", mt.name[i], tok) + lua_util.debugm(N, task, "metatoken: %s = %s", + mt.names[i], tok) table.insert(metatokens, tok) end end @@ -480,7 +481,7 @@ local function rspamd_gen_metatokens_table(task) for _,mt in ipairs(metafunctions) do local ct = mt.cb(task) for i,tok in ipairs(ct) do - metatokens[mt.name[i]] = tok + metatokens[mt.names[i]] = tok end end |