diff options
-rw-r--r-- | src/lua/lua_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 310db5fa9..84110d06a 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -279,6 +279,10 @@ rspamd_lua_init () lua_tostring (L, -1)); } + /* Add plugins global */ + lua_newtable (L); + lua_setglobal (L, "rspamd_plugins"); + return L; } |