gameServer2/src/server/handlers/inroom.rs
changeset 13535 80db7232b4b5
parent 13534 662f7df89d06
child 13671 09f4a30e50cc
--- a/gameServer2/src/server/handlers/inroom.rs	Sat Jul 21 02:13:55 2018 +0300
+++ b/gameServer2/src/server/handlers/inroom.rs	Sat Jul 21 02:19:32 2018 +0300
@@ -372,9 +372,9 @@
                 },
                 VoteType::Map(Some(name)) => {
                     if server.rooms[room_id].saves.get(&name[..]).is_some() {
-                        Some("/callvote map: No such map!".to_string())
+                        None
                     } else {
-                        None
+                        Some("/callvote map: No such map!".to_string())
                     }
                 },
                 VoteType::Pause => {