]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix bayes_expiry disabling 2644/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 23 Nov 2018 07:45:47 +0000 (10:45 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 23 Nov 2018 07:45:47 +0000 (10:45 +0300)
src/plugins/lua/bayes_expiry.lua

index e0bec119feefb303732d94ef9d2161b3fb240bb2..de26e92e1f4e73c30f19bae47ce62adec96af36b 100644 (file)
@@ -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