summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:37:50 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:37:50 +0400
commitb0ce5fefb9e694083846af1e45b09f4baa4b0446 (patch)
treeef984eee370721a96f55533d83df8a448f1ea4c7 /src
parent3138995df69e267d7d7f823141a789a4eec16d39 (diff)
downloadrspamd-b0ce5fefb9e694083846af1e45b09f4baa4b0446.tar.gz
rspamd-b0ce5fefb9e694083846af1e45b09f4baa4b0446.zip
Init regexp library statically.
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;
}