diff options
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index a50986c80..f5cf5d232 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -642,8 +642,6 @@ rspamd_config_post_load (struct rspamd_config *cfg, struct timespec ts; #endif struct metric *def_metric; - struct rspamd_config_post_load_script *sc; - struct rspamd_config **pcfg; gboolean ret = TRUE; #ifdef HAVE_CLOCK_GETTIME @@ -750,22 +748,6 @@ rspamd_config_post_load (struct rspamd_config *cfg, rspamd_config_libs (cfg->libs_ctx, cfg); } - /* Execute post load scripts */ - LL_FOREACH (cfg->on_load, sc) { - lua_rawgeti (cfg->lua_state, LUA_REGISTRYINDEX, sc->cbref); - pcfg = lua_newuserdata (cfg->lua_state, sizeof (*pcfg)); - *pcfg = cfg; - rspamd_lua_setclass (cfg->lua_state, "rspamd{config}", -1); - - if (lua_pcall (cfg->lua_state, 1, 0, 0) != 0) { - msg_err_config ("error executing post load code: %s", - lua_tostring (cfg->lua_state, -1)); - lua_pop (cfg->lua_state, 1); - - return FALSE; - } - } - /* Validate cache */ if (opts & RSPAMD_CONFIG_INIT_VALIDATE) { return rspamd_symbols_cache_validate (cfg->cache, cfg, FALSE) && ret; |