From db8e3cf1f7edb5999de828d990022236f4f8f3a5 Mon Sep 17 00:00:00 2001 From: rasul Date: Wed, 8 Apr 2020 09:21:14 -0500 Subject: [PATCH] only proceed if y was selected --- src/game/state/login.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/state/login.rs b/src/game/state/login.rs index 2e4eb4b..fc434e0 100644 --- a/src/game/state/login.rs +++ b/src/game/state/login.rs @@ -58,7 +58,7 @@ impl Game { // username not found 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); client.state = State::Login(Login::CreatePassword(username.to_owned())); } else {