only proceed if y was selected

master
rasul 5 years ago
parent 3b47837bdb
commit db8e3cf1f7

@ -58,7 +58,7 @@ impl Game {
// username not found // username not found
Login::CreateUser(username) => { Login::CreateUser(username) => {
if !message.clone().is_empty() && message != "n" { if !message.clone().is_empty() && message == "y" {
send_queue.push(token, "\nNew password: ", false, None); send_queue.push(token, "\nNew password: ", false, None);
client.state = State::Login(Login::CreatePassword(username.to_owned())); client.state = State::Login(Login::CreatePassword(username.to_owned()));
} else { } else {

Loading…
Cancel
Save