diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-23 10:54:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-23 10:54:05 +0000 |
commit | eacb870321833191b7fc876c05c45fb6b2eae711 (patch) | |
tree | 851478c56f056cffcdd51010652a428daaf0358c | |
parent | 461412acdea1e54bad3ed15d770a8d9ba9e0974a (diff) | |
parent | 64f39ae2cd4745eda7bbbeb53b0e3c66e271ea89 (diff) | |
download | rspamd-eacb870321833191b7fc876c05c45fb6b2eae711.tar.gz rspamd-eacb870321833191b7fc876c05c45fb6b2eae711.zip |
Merge pull request #2644 from moisseev/expiry
[Minor] Fix bayes_expiry disabling
-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 |