From b8872a729e52b2bb625d707c0fefc2daefd66097 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 6 Sep 2016 16:14:34 +0100 Subject: [Feature] Allow plugins to publish their lua API via rspamd_plugins --- src/lua/lua_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lua/lua_common.c') 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; } -- cgit v1.2.3