aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lua/lua_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index f899f68ed..37581079a 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -290,6 +290,12 @@ rspamd_lua_init ()
lua_rawset (L, -3);
lua_pop (L, 1);
+ luaL_newmetatable (L, "rspamd{session}");
+ lua_pushstring (L, "class");
+ lua_pushstring (L, "rspamd{session}");
+ lua_rawset (L, -3);
+ lua_pop (L, 1);
+
rspamd_lua_new_class (L, "rspamd{worker}", worker_reg);
rspamd_lua_add_preload (L, "ucl", luaopen_ucl);