@@ -248,6 +248,7 @@ rspamd_lua_init () | |||
luaopen_tcp (L); | |||
luaopen_html (L); | |||
luaopen_fann (L); | |||
luaopen_sqlite3 (L); | |||
rspamd_lua_add_preload (L, "ucl", luaopen_ucl); | |||
@@ -224,6 +224,7 @@ void luaopen_util (lua_State * L); | |||
void luaopen_tcp (lua_State * L); | |||
void luaopen_html (lua_State * L); | |||
void luaopen_fann (lua_State *L); | |||
void luaopen_sqlite3 (lua_State *L); | |||
gint rspamd_lua_call_filter (const gchar *function, struct rspamd_task *task); | |||
gint rspamd_lua_call_chain_filter (const gchar *function, |
@@ -343,7 +343,7 @@ static gint | |||
lua_load_sqlite3 (lua_State * L) | |||
{ | |||
lua_newtable (L); | |||
luaL_register (L, NULL, sqlitelib_m); | |||
luaL_register (L, NULL, sqlitelib_f); | |||
return 1; | |||
} | |||
@@ -364,7 +364,7 @@ luaopen_sqlite3 (lua_State * L) | |||
lua_pushstring (L, "rspamd{sqlite3}"); | |||
lua_rawset (L, -3); | |||
luaL_register (L, NULL, sqlitelib_f); | |||
luaL_register (L, NULL, sqlitelib_m); | |||
lua_pop (L, 1); | |||
luaL_newmetatable (L, "rspamd{sqlite3_stmt}"); |