From 5df3eabd4356eea5576e2ce99c4df23ebfacc436 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Mar 2018 18:03:12 +0000 Subject: [PATCH] [Minor] Silence warnings --- src/plugins/lua/arc.lua | 2 +- src/plugins/lua/force_actions.lua | 4 ++-- src/plugins/lua/ratelimit.lua | 2 +- src/plugins/lua/reputation.lua | 2 +- src/plugins/lua/whitelist.lua | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua index e04e2c067..acf590d4b 100644 --- a/src/plugins/lua/arc.lua +++ b/src/plugins/lua/arc.lua @@ -559,7 +559,7 @@ if settings.use_redis then end end -id = rspamd_config:register_symbol({ +rspamd_config:register_symbol({ name = settings['sign_symbol'], callback = arc_signing_cb }) diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index d607e3343..6c898b8ff 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -114,7 +114,7 @@ local function configure_module() local h = rspamd_cryptobox_hash.create() h:update(expr) local name = 'FORCE_ACTION_' .. string.upper(string.sub(h:hex(), 1, 12)) - local id = rspamd_config:register_symbol({ + rspamd_config:register_symbol({ type = 'normal', name = name, callback = cb, @@ -152,7 +152,7 @@ local function configure_module() t.name = 'FORCE_ACTION_' .. name t.callback = cb t.flags = 'empty' - local id = rspamd_config:register_symbol(t) + rspamd_config:register_symbol(t) if t.type == 'normal' then for _, a in ipairs(atoms) do rspamd_config:register_dependency(t.name, a) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index d2aa1abb1..8e5cab328 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -723,7 +723,7 @@ if opts then elseif info_symbol then s.name = info_symbol end - local id = rspamd_config:register_symbol(s) + rspamd_config:register_symbol(s) if use_ip_score then rspamd_config:register_dependency(s.name, 'IP_SCORE') end diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua index 1969729ac..28d0401ea 100644 --- a/src/plugins/lua/reputation.lua +++ b/src/plugins/lua/reputation.lua @@ -990,7 +990,7 @@ local function parse_rule(name, tbl) end) -- We now generate symbol for checking - local id = rspamd_config:register_symbol{ + rspamd_config:register_symbol{ name = symbol, type = 'normal', callback = callback_gen(reputation_filter_cb, rule), diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index 89f382946..7637bb555 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -255,7 +255,7 @@ local configure_whitelist_module = function() flags = 'empty' end - local id = rspamd_config:register_symbol({ + rspamd_config:register_symbol({ name = symbol, flags = flags, callback = gen_whitelist_cb(symbol, rule) -- 2.39.5