From: Vsevolod Stakhov Date: Wed, 6 Oct 2010 16:37:50 +0000 (+0400) Subject: Init regexp library statically. X-Git-Tag: 0.3.3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0ce5fefb9e694083846af1e45b09f4baa4b0446;p=thirdparty%2Frspamd.git Init regexp library statically. --- diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index fa0664ffd1..32ab2b58cb 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; }