summaryrefslogtreecommitdiffstats
path: root/src/lua_worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r--src/lua_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index 723c48707..0cadb7eb2 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -104,7 +104,7 @@ static gint
luaopen_lua_worker (lua_State * L)
{
lua_newclass (L, "rspamd{worker}", lua_workerlib_m);
- luaL_openlib (L, "rspamd_worker", null_reg, 0);
+ luaL_register (L, "rspamd_worker", null_reg);
lua_pop (L, 1); /* remove metatable from stack */