1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Merge pull request #108 from MinusGix/patch-2

Fix null nick bug
This commit is contained in:
marzavec 2020-07-22 08:32:18 -05:00 committed by GitHub
commit b27c0a0f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
}
}