summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/regexp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index fa0664ffd..32ab2b58c 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -91,8 +91,7 @@ static void process_regexp_item (struct worker_task *task, v
static gint
luaopen_regexp (lua_State * L)
{
- lua_newclass (L, "rspamd{regexp}", regexplib_m);
- luaL_openlib (L, "rspamd_regexp", null_reg, 0);
+ luaL_openlib (L, "rspamd_regexp", regexplib_m, 0);
return 1;
}