end
local opts = rspamd_config:get_all_opt('options')
-if opts and type(opts) ~= 'table' then
+if type(opts) == 'table' then
if type(opts['check_local']) == 'boolean' then
check_local = opts['check_local']
end
}
local opts = rspamd_config:get_all_opt('options')
-if opts and type(opts) ~= 'table' then
+if type(opts) == 'table' then
if type(opts['check_local']) == 'boolean' then
check_local = opts['check_local']
end
-- Configuration options
local configure_ip_score_module = function()
local opts = rspamd_config:get_all_opt('options')
- if opts and type(opts) ~= 'table' then
+ if type(opts) == 'table' then
if type(opts['check_authed']) == 'boolean' then
check_authed = opts['check_authed']
end
end
local opts = rspamd_config:get_all_opt('options')
-if opts and type(opts) ~= 'table' then
+if type(opts) == 'table' then
if type(opts['check_local']) == 'boolean' then
check_local = opts['check_local']
end