From 8dd05bdf733925bc6c3519704c9b2a4e4c850788 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 29 May 2023 20:46:44 +0100 Subject: [PATCH] [Minor] Pet luacheck --- src/plugins/lua/multimap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 818a58701..2cc878ec8 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -89,7 +89,7 @@ local function parse_multimap_value(parse_rule, p_ret) return true,sym,score,opts else if p_ret ~= '' then - rspamd_logger.infox(task, '%s: cannot parse string "%s"', + rspamd_logger.infox(rspamd_config, '%s: cannot parse string "%s"', parse_rule.symbol, p_ret) end @@ -1011,7 +1011,7 @@ local function multimap_on_load_gen(rule) lua_util.debugm(N, rspamd_config, "loaded map object for rule %s", rule['symbol']) local known_symbols = {} rule.map_obj:foreach(function(key, value) - local r,symbol,score,_opts = parse_multimap_value(rule, value) + local r,symbol,score,_ = parse_multimap_value(rule, value) if r and symbol and not known_symbols[symbol] then lua_util.debugm(N, rspamd_config, "%s: adding new symbol %s (score = %s), triggered by %s", -- 2.39.5