diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-06 16:14:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-06 16:14:34 +0100 |
commit | b8872a729e52b2bb625d707c0fefc2daefd66097 (patch) | |
tree | cfa4556c19073e2d11023f33df28e69e26144fd9 /src/lua/lua_common.c | |
parent | 720a4169fbda4f1f0a8a2ac6898a578b9aaa5a46 (diff) | |
download | rspamd-b8872a729e52b2bb625d707c0fefc2daefd66097.tar.gz rspamd-b8872a729e52b2bb625d707c0fefc2daefd66097.zip |
[Feature] Allow plugins to publish their lua API via rspamd_plugins
Diffstat (limited to 'src/lua/lua_common.c')
-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; } |