aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/server/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/server/index.ts b/source/server/index.ts
index f37a0b9..88c3a66 100644
--- a/source/server/index.ts
+++ b/source/server/index.ts
@@ -53,7 +53,7 @@ async function main() {
let user_name = ""
const init = (n: string) => {
- if (room.get(n)) return ws.close(1, "username already taken")
+ if (room.get(n)) return ws.close()
initialized = true
user_name = n
rooms.set(req.params.id, room)