diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-19 16:17:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-19 16:17:09 +0100 |
commit | cd90ae359bbfacd6d0f15bf701e35ee6c9ed54eb (patch) | |
tree | db230ea90da81a2a3d58fb674af34d7cf35676a3 /src/lua | |
parent | 52a9a2eed69bed33764a2eb66715711ea660fbeb (diff) | |
download | rspamd-cd90ae359bbfacd6d0f15bf701e35ee6c9ed54eb.tar.gz rspamd-cd90ae359bbfacd6d0f15bf701e35ee6c9ed54eb.zip |
[Minor] Allow to initialise stat ctx via Lua API
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 82f67542a..84062d46b 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -3450,6 +3450,12 @@ lua_config_init_subsystem (lua_State *L) else if (strcmp (parts[i], "langdet") == 0) { cfg->lang_det = rspamd_language_detector_init (cfg); } + else if (strcmp (parts[i], "stat") == 0) { + rspamd_stat_init (cfg, NULL); + } + else { + return luaL_error (L, "invalid param: %s", parts[i]); + } } } else { |