]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Init regexp library statically.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 6 Oct 2010 16:37:50 +0000 (20:37 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 6 Oct 2010 16:37:50 +0000 (20:37 +0400)
src/plugins/regexp.c

index fa0664ffd1bbdb8add7595c56157c3ca7c446a2b..32ab2b58cb11a1b03c5d77834cf1236a869e5d95 100644 (file)
@@ -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;
 }