|
|
@ -24,7 +24,7 @@ impl Game {
|
|
|
|
// get the username
|
|
|
|
// get the username
|
|
|
|
Login::Username => {
|
|
|
|
Login::Username => {
|
|
|
|
if message.is_empty() {
|
|
|
|
if message.is_empty() {
|
|
|
|
send_queue.push(token, "Username: ", false);
|
|
|
|
send_queue.push(token, "\n\nUsername: ", false);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
match self.db.find_player_by_name(&message) {
|
|
|
|
match self.db.find_player_by_name(&message) {
|
|
|
|
Ok(Some(_)) => {
|
|
|
|
Ok(Some(_)) => {
|
|
|
|