diff -r ede5f4ec48f3 -r f1205f33bf5b rust/hedgewars-server/src/handlers/strings.rs --- a/rust/hedgewars-server/src/handlers/strings.rs Thu Dec 26 21:55:51 2019 +0300 +++ b/rust/hedgewars-server/src/handlers/strings.rs Fri Dec 27 22:36:19 2019 +0300 @@ -1,11 +1,17 @@ pub const ACCESS_DENIED: &str = "Access denied."; -pub const AUTHENTICATION_FAILED: &str = "Authentication failed."; +pub const AUTHENTICATION_FAILED: &str = "Authentication failed"; +pub const BAD_NUMBER: &str = "Bad number."; +pub const ILLEGAL_CLIENT_NAME: &str = "Illegal nickname! Nicknames must be between 1-40 characters long, must not have a trailing or leading space and must not have any of these characters: $()*+?[]^{|}"; pub const ILLEGAL_ROOM_NAME: &str = "Illegal room name! A room name must be between 1-40 characters long, must not have a trailing or leading space and must not have any of these characters: $()*+?[]^{|}"; +pub const NICKNAME_PROVIDED: &str = "Nickname already provided."; +pub const NO_CHECKER_RIGHTS: &str = "No checker rights"; pub const NO_ROOM: &str = "No such room."; pub const NO_TEAM: &str = "No such team."; pub const NO_TEAM_TO_REMOVE: &str = "Error: The team you tried to remove does not exist."; pub const NO_USER: &str = "No such user."; pub const NOT_MASTER: &str = "You're not the room master!"; +pub const PROTOCOL_PROVIDED: &str = "Protocol already known."; +pub const PROTOCOL_TOO_OLD: &str = "Protocol version is too old"; pub const REPLAY_LOAD_FAILED: &str = "Could't load the replay"; pub const REPLAY_NOT_SUPPORTED: &str = "This server does not support replays!"; pub const REGISTRATION_REQUIRED: &str = "This server only allows registered users to join.";