diff --git a/blastmud_game/src/message_handler/user_commands/login.rs b/blastmud_game/src/message_handler/user_commands/login.rs index cdfcf50d..d60f5bb6 100644 --- a/blastmud_game/src/message_handler/user_commands/login.rs +++ b/blastmud_game/src/message_handler/user_commands/login.rs @@ -8,7 +8,7 @@ pub struct Verb; impl UserVerb for Verb { async fn handle(self: &Self, ctx: &mut VerbContext, _verb: &str, remaining: &str) -> UResult<()> { let (username, password) = match remaining.split_whitespace().collect::>()[..] { - [] => user_error("Too few options to login".to_owned())?, + [] | [_] => user_error("Too few options to login".to_owned())?, [username, password] => (username, password), _ => user_error("Too many options to login".to_owned())?, };