equal
deleted
inserted
replaced
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), |