diff options
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 |