rust/hedgewars-server/src/handlers/inroom.rs
changeset 15531 ede5f4ec48f3
parent 15530 a859f08ebb4f
child 15534 bb93e9642b5b
--- a/rust/hedgewars-server/src/handlers/inroom.rs	Thu Dec 26 21:04:37 2019 +0300
+++ b/rust/hedgewars-server/src/handlers/inroom.rs	Thu Dec 26 21:55:51 2019 +0300
@@ -141,7 +141,7 @@
             );
         }
         TeamChat(msg) => {
-            if let Some(ref info) = room.game_info {
+            if room.game_info.is_some() {
                 if let Some(clan_color) = room.find_team_color(client_id) {
                     let engine_msg =
                         to_engine_msg(format!("b{}]{}\x20\x20", client.nick, msg).bytes());