Browse Source

[Minor] Silence warnings

tags/1.7.1
Vsevolod Stakhov 6 years ago
parent
commit
5df3eabd43

+ 1
- 1
src/plugins/lua/arc.lua View File

@@ -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
})

+ 2
- 2
src/plugins/lua/force_actions.lua View File

@@ -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)

+ 1
- 1
src/plugins/lua/ratelimit.lua View File

@@ -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

+ 1
- 1
src/plugins/lua/reputation.lua View File

@@ -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),

+ 1
- 1
src/plugins/lua/whitelist.lua View File

@@ -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)

Loading…
Cancel
Save