From: Vsevolod Stakhov Date: Tue, 6 Sep 2016 15:14:34 +0000 (+0100) Subject: [Feature] Allow plugins to publish their lua API via rspamd_plugins X-Git-Tag: 1.4.0~479 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8872a729e52b2bb625d707c0fefc2daefd66097;p=rspamd.git [Feature] Allow plugins to publish their lua API via rspamd_plugins --- 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; }