commit 2b1a95a: [Minor] Settings: Fix function invocation

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Feb 12 11:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-12 11:11:10 +0000
URL: https://github.com/rspamd/rspamd/commit/2b1a95aedcf68effe867940478ca4430b2d13dc1 (HEAD -> master)

[Minor] Settings: Fix function invocation

---
 src/plugins/lua/settings.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 6cea01192..8d2122868 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -229,7 +229,7 @@ local function check_settings(task)
         end
 
         local ret = fun.any(function(d)
-          return check_func(value, d)
+          return check_func(d, value)
         end, to_check)
         if ret then
           res = true


More information about the Commits mailing list