diff options
author | davidovski <david@sendula.com> | 2021-07-08 19:32:32 +0100 |
---|---|---|
committer | davidovski <david@sendula.com> | 2021-07-08 19:32:32 +0100 |
commit | 6a3960283ab36711bf184a911e592cf8c63dec07 (patch) | |
tree | 130c251cd5e5bbaf493f0698da18d5651e2f0ff0 | |
parent | a0851bd40055bd22f2c0a4d8f2f2e7329701abb3 (diff) |
fixed missing brackets
-rw-r--r-- | main.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |