Fix null nick bug

This commit is contained in:
MinusGix
2020-07-21 13:59:56 -05:00
committed by GitHub
parent 4e59a3a1e2
commit 1f8eb7b2c2
+4 -1
View File
@@ -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;
}
}
}