From 43b2606d44f014b16cc64603068253ee71d05e0c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 13 May 2015 10:53:28 +0100 Subject: Try to load all lua modules ignoring failed ones. --- src/lua/lua_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua/lua_common.c') diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 125acfaf0..590717346 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -291,7 +291,7 @@ rspamd_init_lua_filters (struct rspamd_config *cfg) msg_info ("load of %s failed: %s", module->path, lua_tostring (L, -1)); cur = g_list_next (cur); - return FALSE; + continue; } /* Initialize config structure */ @@ -304,14 +304,14 @@ rspamd_init_lua_filters (struct rspamd_config *cfg) if (lua_pcall (L, 0, LUA_MULTRET, 0) != 0) { msg_info ("init of %s failed: %s", module->path, lua_tostring (L, -1)); - return FALSE; + cur = g_list_next (cur); + continue; } if (lua_gettop (L) != 0) { if (lua_tonumber (L, -1) == -1) { msg_info ( "%s returned -1 that indicates configuration error", module->path); - return FALSE; } lua_pop (L, lua_gettop (L)); } -- cgit v1.2.3