diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-04 13:17:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-04 13:17:43 +0000 |
commit | 041d2e56ebeb880a423eb7f8434cdab4f7efaf68 (patch) | |
tree | bfe5553c7b21bbe00aeec9c93ff9f52cde4f9af8 /src/rspamadm/confighelp.c | |
parent | 3383065b190c63dfaa3ef837572b1b43f80ae841 (diff) | |
download | rspamd-041d2e56ebeb880a423eb7f8434cdab4f7efaf68.tar.gz rspamd-041d2e56ebeb880a423eb7f8434cdab4f7efaf68.zip |
[Rework] Simplify lua path initialization
Diffstat (limited to 'src/rspamadm/confighelp.c')
-rw-r--r-- | src/rspamadm/confighelp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/confighelp.c b/src/rspamadm/confighelp.c index f3da9422d..5f8e1cfcc 100644 --- a/src/rspamadm/confighelp.c +++ b/src/rspamadm/confighelp.c @@ -20,7 +20,6 @@ #include "cfg_rcl.h" #include "rspamd.h" #include "lua/lua_common.h" -#include "confighelp.lua.h" static gboolean json = FALSE; static gboolean compact = FALSE; @@ -251,7 +250,8 @@ rspamadm_confighelp (gint argc, gchar **argv) } /* Init lua modules */ - rspamd_init_lua_filters (cfg, TRUE, ucl_vars); + rspamd_lua_set_path (cfg->lua_state, cfg->rcl_obj, ucl_vars); + rspamd_init_lua_filters (cfg, TRUE); if (argc > 1) { for (i = 1; i < argc; i ++) { |