diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-02 17:09:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-02 17:09:45 +0100 |
commit | fcf273b01fa0b7307ae004ce9767c82c477d0e21 (patch) | |
tree | 43b53c0b3220cc44d8b4398885910ec2a1435dac /src | |
parent | 2fd553b3902e7d8772c90af0b0f20824002b38af (diff) | |
download | rspamd-fcf273b01fa0b7307ae004ce9767c82c477d0e21.tar.gz rspamd-fcf273b01fa0b7307ae004ce9767c82c477d0e21.zip |
[Minor] Pet luacheck
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/spamtrap.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/lua/spamtrap.lua b/src/plugins/lua/spamtrap.lua index f1582f8ce..85af46dd2 100644 --- a/src/plugins/lua/spamtrap.lua +++ b/src/plugins/lua/spamtrap.lua @@ -137,12 +137,6 @@ local function spamtrap_cb(task) end -- Module setup -local opts = rspamd_config:get_all_opt('spamtrap') -if not (opts and type(opts) == 'table') then - rspamd_logger.infox(rspamd_config, 'module is unconfigured') - return -end - local function try_opts(where) local ret = false local opts = rspamd_config:get_all_opt(where) @@ -160,6 +154,12 @@ local function try_opts(where) return ret end +local opts = rspamd_config:get_all_opt('spamtrap') +if not (opts and type(opts) == 'table') then + rspamd_logger.infox(rspamd_config, 'module is unconfigured') + return +end + if not try_opts(M) then try_opts('options') end if opts then |