From 1f8eb7b2c2b3ec4eeab2405c8d44b0ae3eb51635 Mon Sep 17 00:00:00 2001 From: MinusGix Date: Tue, 21 Jul 2020 13:59:56 -0500 Subject: [PATCH] Fix null nick bug --- client/client.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/client.js b/client/client.js index 3624925..5665097 100644 --- a/client/client.js +++ b/client/client.js @@ -320,7 +320,10 @@ function join(channel) { if (location.hash) { myNick = location.hash.substr(1); } else { - myNick = prompt('Nickname:', myNick); + var newNick = prompt('Nickname:', myNick); + if (newNick !== null) { + myNick = newNick; + } } }