diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-18 13:46:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-18 13:47:52 +0100 |
commit | 76a8573d219df1517d30391fb08800d0b7bb50ae (patch) | |
tree | cc2e82eae81198a7d2e84fc0e498d6415c72b905 /src/lua/lua_common.c | |
parent | 48e73dbaee68e25212d9ad5317840641f4fe11eb (diff) | |
download | rspamd-76a8573d219df1517d30391fb08800d0b7bb50ae.tar.gz rspamd-76a8573d219df1517d30391fb08800d0b7bb50ae.zip |
[Feature] Add periodic events support for lua_config
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r-- | src/lua/lua_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index efe4f45cf..3f36306e2 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -271,6 +271,12 @@ rspamd_lua_init () luaopen_cryptobox (L); luaopen_lpeg (L); + luaL_newmetatable (L, "rspamd{ev_base}"); + lua_pushstring (L, "class"); + lua_pushstring (L, "rspamd{ev_base}"); + lua_rawset (L, -3); + lua_pop (L, 1); + rspamd_lua_add_preload (L, "ucl", luaopen_ucl); if (luaL_dostring (L, rspamadm_script_global_functions) != 0) { |