aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-06 16:14:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-06 16:14:34 +0100
commitb8872a729e52b2bb625d707c0fefc2daefd66097 (patch)
treecfa4556c19073e2d11023f33df28e69e26144fd9 /src/lua/lua_common.c
parent720a4169fbda4f1f0a8a2ac6898a578b9aaa5a46 (diff)
downloadrspamd-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.c4
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;
}