summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@sendula.com>2021-07-08 19:32:32 +0100
committerdavidovski <david@sendula.com>2021-07-08 19:32:32 +0100
commit6a3960283ab36711bf184a911e592cf8c63dec07 (patch)
tree130c251cd5e5bbaf493f0698da18d5651e2f0ff0
parenta0851bd40055bd22f2c0a4d8f2f2e7329701abb3 (diff)
fixed missing brackets
-rw-r--r--main.js2
1 files changed, 1 insertions, 1 deletions
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))