]> source.dussan.org Git - rspamd.git/commitdiff
Lua is now parsed after all parsing complete.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Aug 2014 16:34:06 +0000 (17:34 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Aug 2014 16:34:06 +0000 (17:34 +0100)
src/libserver/cfg_rcl.c

index 8060ed29fe8b3ffddf335f38223cf31dc2ed1895..22ce3be50c6b84c1fb39291389854d89f4ccc7d0 100644 (file)
@@ -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
         */
@@ -1338,16 +1343,6 @@ rspamd_rcl_config_init (void)
                G_STRUCT_OFFSET (struct rspamd_worker_conf, rlimit_maxcore),
                RSPAMD_CL_FLAG_INT_32);
 
-       /**
-        * Lua handler
-        */
-       sub = rspamd_rcl_add_section (&new,
-                       "lua",
-                       rspamd_rcl_lua_handler,
-                       UCL_STRING,
-                       FALSE,
-                       TRUE);
-
        /**
         * Modules handler
         */
@@ -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;
 }