diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-07-26 21:50:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-07-26 21:50:13 +0400 |
commit | e1a8ed50131891516f5da6e22aae69a306147d38 (patch) | |
tree | 61002cf909d2d41553b94b8ed654d0f2f3567a67 /src/lua/lua_classifier.c | |
parent | 2e615083e475c7390c667695b9e659fa5ba4da5f (diff) | |
download | rspamd-e1a8ed50131891516f5da6e22aae69a306147d38.tar.gz rspamd-e1a8ed50131891516f5da6e22aae69a306147d38.zip |
* Add lua worker type and lua worker bindings.
* Add lua utility library for basic utils.
* Fixes lua_buffer code.
Fix lua loading error.
Added some other lua utility functions.
Diffstat (limited to 'src/lua/lua_classifier.c')
-rw-r--r-- | src/lua/lua_classifier.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_classifier.c b/src/lua/lua_classifier.c index edaf4e7a6..e929c6b50 100644 --- a/src/lua/lua_classifier.c +++ b/src/lua/lua_classifier.c @@ -371,6 +371,8 @@ luaopen_classifier (lua_State * L) lua_newclass (L, "rspamd{classifier}", classifierlib_m); luaL_openlib (L, "rspamd_classifier", null_reg, 0); + lua_pop (L, 1); /* remove metatable from stack */ + return 1; } @@ -380,6 +382,8 @@ luaopen_statfile (lua_State * L) lua_newclass (L, "rspamd{statfile}", statfilelib_m); luaL_openlib (L, "rspamd_statfile", null_reg, 0); + lua_pop (L, 1); /* remove metatable from stack */ + return 1; } |