summaryrefslogtreecommitdiff
path: root/src/ircd.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ircd.js')
-rw-r--r--src/ircd.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ircd.js b/src/ircd.js
index affc986..6a02bd6 100644
--- a/src/ircd.js
+++ b/src/ircd.js
@@ -1,11 +1,13 @@
const net = require("node:net");
+const db = require("./db.js");
const server = net.createServer(socket => {
socket.write("olar\r\n");
socket.pipe(socket);
});
-const app = udsPath => {
+const app = async udsPath => {
+ await db.init();
server.listen(udsPath, () => {
console.log("I'm ircd.");
});