]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/lua.c
LUA: port luadb to dbapi2 to drop postgres dependency
[irc/quakenet/newserv.git] / lua / lua.c
index 5263f26a02f504b39f4d24e687d421ad295982e7..6199da1674e6881868ad24255d35cbd037ce73d3 100644 (file)
--- a/lua/lua.c
+++ b/lua/lua.c
@@ -44,6 +44,7 @@ void lua_startbot(void *arg);
 void lua_destroybot(void);
 void lua_startcontrol(void);
 void lua_destroycontrol(void);
+void lua_destroydb(void);
 
 void lua_onunload(lua_State *l);
 void lua_onload(lua_State *l);
@@ -151,6 +152,7 @@ void _fini() {
 
     lua_destroybot();
     lua_destroycontrol();
+    lua_destroydb();
   }
 
   freesstring(cpath);