aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/fann_scores.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/fann_scores.lua')
-rw-r--r--src/plugins/lua/fann_scores.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua
index cafa5befa..fc9ea59c9 100644
--- a/src/plugins/lua/fann_scores.lua
+++ b/src/plugins/lua/fann_scores.lua
@@ -39,10 +39,7 @@ local max_epoch = 100
local use_settings = false
local opts = rspamd_config:get_all_opt("fann_scores")
if not (opts and type(opts) == 'table') then
- rspamd_logger.infox('Module is unconfigured')
- return
-elseif opts['enabled'] == false then
- rspamd_logger.info('Module is disabled')
+ rspamd_logger.infox(rspamd_config, 'Module is unconfigured')
return
end