aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_classifier.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-25 13:17:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-25 13:17:21 +0100
commitc2765b3eb3c3beb3d9f42dc061761df2e300904c (patch)
tree0f5924f4fd821b16a258465d9dcb0068e5332bf2 /src/lua/lua_classifier.c
parenta1be94b4c4b59de216e0b8b721a951b2325f7215 (diff)
downloadrspamd-c2765b3eb3c3beb3d9f42dc061761df2e300904c.tar.gz
rspamd-c2765b3eb3c3beb3d9f42dc061761df2e300904c.zip
Use modules preload for lua.
Diffstat (limited to 'src/lua/lua_classifier.c')
-rw-r--r--src/lua/lua_classifier.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lua/lua_classifier.c b/src/lua/lua_classifier.c
index 869bca865..1edca4857 100644
--- a/src/lua/lua_classifier.c
+++ b/src/lua/lua_classifier.c
@@ -428,25 +428,17 @@ lua_check_statfile (lua_State * L)
/* Open functions */
-gint
+void
luaopen_classifier (lua_State * L)
{
rspamd_lua_new_class (L, "rspamd{classifier}", classifierlib_m);
- luaL_register (L, "rspamd_classifier", null_reg);
-
lua_pop (L, 1); /* remove metatable from stack */
-
- return 1;
}
-gint
+void
luaopen_statfile (lua_State * L)
{
rspamd_lua_new_class (L, "rspamd{statfile}", statfilelib_m);
- luaL_register (L, "rspamd_statfile", null_reg);
-
lua_pop (L, 1); /* remove metatable from stack */
-
- return 1;
}