Last character of the last nick was cut
authorGreg Burri <greg.burri@gmail.com>
Sun, 27 Jun 2021 09:22:57 +0000 (11:22 +0200)
committerGreg Burri <greg.burri@gmail.com>
Sun, 27 Jun 2021 09:22:57 +0000 (11:22 +0200)
backend/src/minecraft_controller.rs

index 9287cda..8b06f66 100644 (file)
@@ -89,7 +89,7 @@ fn get_status_from_rcon(rcon_password: &str) -> StatusFromRcon {
                             Ok(resp) =>\r
                                 match resp.body.find(':') {\r
                                     Some(i) if i < resp.body.len() -1 =>\r
-                                        resp.body[i + 1..resp.body.len() - 1]\r
+                                        resp.body[i + 1..resp.body.len()]\r
                                             .split(',')\r
                                             .map(|nick| nick.trim().to_string())\r
                                             .filter(|nick| !nick.is_empty())\r