diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-11-23 10:45:47 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-11-23 10:45:47 +0300 |
commit | 64f39ae2cd4745eda7bbbeb53b0e3c66e271ea89 (patch) | |
tree | 851478c56f056cffcdd51010652a428daaf0358c /src/plugins/lua/bayes_expiry.lua | |
parent | 461412acdea1e54bad3ed15d770a8d9ba9e0974a (diff) | |
download | rspamd-64f39ae2cd4745eda7bbbeb53b0e3c66e271ea89.tar.gz rspamd-64f39ae2cd4745eda7bbbeb53b0e3c66e271ea89.zip |
[Minor] Fix bayes_expiry disabling
Diffstat (limited to 'src/plugins/lua/bayes_expiry.lua')
-rw-r--r-- | src/plugins/lua/bayes_expiry.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/bayes_expiry.lua b/src/plugins/lua/bayes_expiry.lua index e0bec119f..de26e92e1 100644 --- a/src/plugins/lua/bayes_expiry.lua +++ b/src/plugins/lua/bayes_expiry.lua @@ -72,7 +72,7 @@ local function check_redis_classifier(cls, cfg) end end - if not symbol_spam or not symbol_ham or not type(expiry) == 'number' then + if not symbol_spam or not symbol_ham or type(expiry) ~= 'number' then return end -- Now try to load redis_params if needed |