Fix #70, name change on cancel
Don't send the /nick command if a user clicks on the "nick" button and cancels out of the prompt.
This commit is contained in:
parent
b03329772e
commit
64a6b2943c
@ -124,7 +124,7 @@ function auth() {
|
||||
|
||||
function nick() {
|
||||
let nick = prompt("Enter new name");
|
||||
if (nick != "") {
|
||||
if (nick != "" && nick !== null) {
|
||||
sendMessage("/nick " + nick);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user