From 6a3960283ab36711bf184a911e592cf8c63dec07 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 8 Jul 2021 19:32:32 +0100 Subject: fixed missing brackets --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index a849dd4..160248c 100644 --- a/main.js +++ b/main.js @@ -45,7 +45,7 @@ wss.on("connection", ws => { // Ensure that nickname requirements are met before setting client's nick if (data.nickname && data.nickname.length < 24 && data.nickname.length > 0) nick = data.nickname; - switch data.event { + switch (data.event) { case "join": // send the client the requested number of messages before joining if (data.lines) log.slice(0-data.lines).forEach(l => ws.send(l)) -- cgit v1.2.1