rust/hedgewars-server/src/handlers/inlobby.rs
changeset 15991 00bf5adba849
parent 15990 c40f5e27aaf0
child 16001 8ba2b5007c29
equal deleted inserted replaced
15990:c40f5e27aaf0 15991:00bf5adba849
    26 ) {
    26 ) {
    27     use hedgewars_network_protocol::messages::HwProtocolMessage::*;
    27     use hedgewars_network_protocol::messages::HwProtocolMessage::*;
    28 
    28 
    29     //todo!("add kick/ban handlers");
    29     //todo!("add kick/ban handlers");
    30     //todo!("add command for forwarding lobby chat into rooms
    30     //todo!("add command for forwarding lobby chat into rooms
       
    31     //todo!("report player account age")
       
    32     //todo!("port listing rooms for incompatible protocols"))
    31 
    33 
    32     match message {
    34     match message {
    33         CreateRoom(name, password) => match server.create_room(client_id, name, password) {
    35         CreateRoom(name, password) => match server.create_room(client_id, name, password) {
    34             Err(CreateRoomError::InvalidName) => response.warn(ILLEGAL_ROOM_NAME),
    36             Err(CreateRoomError::InvalidName) => response.warn(ILLEGAL_ROOM_NAME),
    35             Err(CreateRoomError::AlreadyExists) => response.warn(ROOM_EXISTS),
    37             Err(CreateRoomError::AlreadyExists) => response.warn(ROOM_EXISTS),