equal
deleted
inserted
replaced
370 Some(format!("Available maps: {}", names.join(", "))) |
370 Some(format!("Available maps: {}", names.join(", "))) |
371 } |
371 } |
372 }, |
372 }, |
373 VoteType::Map(Some(name)) => { |
373 VoteType::Map(Some(name)) => { |
374 if server.rooms[room_id].saves.get(&name[..]).is_some() { |
374 if server.rooms[room_id].saves.get(&name[..]).is_some() { |
|
375 None |
|
376 } else { |
375 Some("/callvote map: No such map!".to_string()) |
377 Some("/callvote map: No such map!".to_string()) |
376 } else { |
|
377 None |
|
378 } |
378 } |
379 }, |
379 }, |
380 VoteType::Pause => { |
380 VoteType::Pause => { |
381 if is_in_game { |
381 if is_in_game { |
382 None |
382 None |