diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-06 19:55:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-06 19:55:11 +0400 |
commit | 4405a019f681fcb51ce0e53b477ed64d50740138 (patch) | |
tree | 1717f2091849f9231447c5c6492f9b77361488bf /src/lua/lua_common.c | |
parent | 42baae32bc212e9287e11afa685e2de77cdf48e4 (diff) | |
download | rspamd-4405a019f681fcb51ce0e53b477ed64d50740138.tar.gz rspamd-4405a019f681fcb51ce0e53b477ed64d50740138.zip |
* Add lua functions parsing for module options
* Add missing sections to XML parser (classifier, statfile, view, settings)
* Add missing params to XML parser
* Implement new commandline options parser (using glib)
* Set version to 0.3.0 as new rspamd would use new config system
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r-- | src/lua/lua_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 3d4e29b28..c73b663bb 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -181,7 +181,7 @@ luaopen_logger (lua_State * L) } void -init_lua () +init_lua (struct config_file *cfg) { if (L == NULL) { L = lua_open (); @@ -198,6 +198,7 @@ init_lua () (void)luaopen_message (L); (void)luaopen_classifier (L); (void)luaopen_statfile (L); + cfg->lua_state = L; } } @@ -361,7 +362,6 @@ void add_luabuf (const char *line) { int error; - init_lua (); error = luaL_loadbuffer (L, line, strlen (line), "config") || lua_pcall (L, 0, 0, 0); if (error) { |