equal
deleted
inserted
replaced
460 } |
460 } |
461 IoResult::SaveRoom(_, false) => { |
461 IoResult::SaveRoom(_, false) => { |
462 response.warn(ROOM_CONFIG_SAVE_FAILED); |
462 response.warn(ROOM_CONFIG_SAVE_FAILED); |
463 } |
463 } |
464 IoResult::LoadRoom(room_id, Some(contents)) => { |
464 IoResult::LoadRoom(room_id, Some(contents)) => { |
465 if let Some(ref mut room) = state.server.rooms.get_mut(room_id) { |
465 if let Some(ref mut room) = state.server.get_room_mut(room_id) { |
466 match room.set_saves(&contents) { |
466 match room.set_saves(&contents) { |
467 Ok(_) => response.add(server_chat(ROOM_CONFIG_LOADED.to_string()).send_self()), |
467 Ok(_) => response.add(server_chat(ROOM_CONFIG_LOADED.to_string()).send_self()), |
468 Err(e) => { |
468 Err(e) => { |
469 warn!("Error while deserializing the room configs: {}", e); |
469 warn!("Error while deserializing the room configs: {}", e); |
470 response.warn(ROOM_CONFIG_DESERIALIZE_FAILED); |
470 response.warn(ROOM_CONFIG_DESERIALIZE_FAILED); |