From: Greg Burri Date: Sun, 27 Jun 2021 09:22:57 +0000 (+0200) Subject: Last character of the last nick was cut X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=bcfd0fe0c9a9b0250501c85e4a241f55d8012106;p=minecraft_web.git Last character of the last nick was cut --- diff --git a/backend/src/minecraft_controller.rs b/backend/src/minecraft_controller.rs index 9287cda..8b06f66 100644 --- a/backend/src/minecraft_controller.rs +++ b/backend/src/minecraft_controller.rs @@ -89,7 +89,7 @@ fn get_status_from_rcon(rcon_password: &str) -> StatusFromRcon { Ok(resp) => match resp.body.find(':') { Some(i) if i < resp.body.len() -1 => - resp.body[i + 1..resp.body.len() - 1] + resp.body[i + 1..resp.body.len()] .split(',') .map(|nick| nick.trim().to_string()) .filter(|nick| !nick.is_empty())