소스 검색

[Minor] Pet luacheck

tags/1.9.3
Vsevolod Stakhov 5 년 전
부모
커밋
3b808ddf62
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6
    6
      src/plugins/lua/whitelist.lua

+ 6
- 6
src/plugins/lua/whitelist.lua 파일 보기

@@ -315,14 +315,14 @@ local configure_whitelist_module = function()

local function try_opts(where)
local ret = false
local opts = rspamd_config:get_all_opt(where)
if type(opts) == 'table' then
if type(opts['check_local']) == 'boolean' then
options.check_local = opts['check_local']
local test_opts = rspamd_config:get_all_opt(where)
if type(test_opts) == 'table' then
if type(test_opts.check_local) == 'boolean' then
options.check_local = test_opts.check_local
ret = true
end
if type(opts['check_authed']) == 'boolean' then
options.check_authed = opts['check_authed']
if type(test_opts.check_authed) == 'boolean' then
options.check_authed = test_opts.check_authed
ret = true
end
end

Loading…
취소
저장