aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 18:25:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-06 18:25:15 +0100
commitd9c16b50a4f7607cb5f4887fcc3c988f7c28d181 (patch)
tree4284c8de0a956a30ed70f92c65e24b9da0df5115 /src/plugins/fuzzy_check.c
parent54becee5b29dfc2cbda278a7f016fa62eceb996a (diff)
downloadrspamd-d9c16b50a4f7607cb5f4887fcc3c988f7c28d181.tar.gz
rspamd-d9c16b50a4f7607cb5f4887fcc3c988f7c28d181.zip
Add conditional enabling of modules.
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 5d1ebe316..783b9393f 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -417,6 +417,10 @@ fuzzy_check_module_config (struct rspamd_config *cfg)
const ucl_object_t *value, *cur;
gint res = TRUE, cb_id;
+ if (!rspamd_config_is_module_enabled (cfg, "fuzzy_check")) {
+ return TRUE;
+ }
+
if ((value =
rspamd_config_get_module_opt (cfg, "fuzzy_check", "symbol")) != NULL) {
fuzzy_module_ctx->default_symbol = ucl_obj_tostring (value);