summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-17 17:34:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-17 17:34:06 +0100
commit00de10fa6d82fd3f0c2794aaa60772f785dffc84 (patch)
tree78301e58a9884a37fcb6d28c96fe30d38e89b55e /src/libserver
parentdf48f709f804739d1b084174c46af04b10d2fede (diff)
downloadrspamd-00de10fa6d82fd3f0c2794aaa60772f785dffc84.tar.gz
rspamd-00de10fa6d82fd3f0c2794aaa60772f785dffc84.zip
Lua is now parsed after all parsing complete.
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_rcl.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 8060ed29f..22ce3be50 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -1129,7 +1129,12 @@ rspamd_rcl_config_init (void)
{
struct rspamd_rcl_section *new = NULL, *sub, *ssub;
- /* TODO: add all known rspamd sections here */
+ /*
+ * Important notice:
+ * the order of parsing is equal to order of this initialization, therefore
+ * it is possible to init some portions of config prior to others
+ */
+
/**
* Logging section
*/
@@ -1339,16 +1344,6 @@ rspamd_rcl_config_init (void)
RSPAMD_CL_FLAG_INT_32);
/**
- * Lua handler
- */
- sub = rspamd_rcl_add_section (&new,
- "lua",
- rspamd_rcl_lua_handler,
- UCL_STRING,
- FALSE,
- TRUE);
-
- /**
* Modules handler
*/
sub = rspamd_rcl_add_section (&new,
@@ -1409,6 +1404,16 @@ rspamd_rcl_config_init (void)
FALSE,
TRUE);
+ /**
+ * Lua handler
+ */
+ sub = rspamd_rcl_add_section (&new,
+ "lua",
+ rspamd_rcl_lua_handler,
+ UCL_STRING,
+ FALSE,
+ TRUE);
+
return new;
}