diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-03 13:36:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-03 16:55:30 +0000 |
commit | f5e2a84b6981cc12f06c908f9af277d13e64e7e8 (patch) | |
tree | b86cc3a6ee0803e86d825240986d2b2efa553758 /src/plugins/lua/replies.lua | |
parent | 12d38f08dd70e39bc0848390d6ec4f1f003ec335 (diff) | |
download | rspamd-f5e2a84b6981cc12f06c908f9af277d13e64e7e8.tar.gz rspamd-f5e2a84b6981cc12f06c908f9af277d13e64e7e8.zip |
[Feature] Store plugins state
Diffstat (limited to 'src/plugins/lua/replies.lua')
-rw-r--r-- | src/plugins/lua/replies.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index 99d13db7b..5c17efa59 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -34,6 +34,8 @@ local settings = { local rspamd_logger = require 'rspamd_logger' local hash = require 'rspamd_cryptobox_hash' +local lua_util = require 'lua_util' +local N = "replies" local function make_key(goop) local h = hash.create() @@ -125,6 +127,7 @@ if opts then redis_params = rspamd_parse_redis_server('replies') if not redis_params then rspamd_logger.infox(rspamd_config, 'no servers are specified, disabling module') + lua_util.disable_module(N, "redis") else rspamd_config:register_symbol({ name = 'REPLIES_SET', |