--- a/rust/hedgewars-server/src/protocol/messages.rs Tue Apr 09 00:45:14 2019 +0200
+++ b/rust/hedgewars-server/src/protocol/messages.rs Tue Apr 09 21:08:35 2019 +0300
@@ -71,8 +71,11 @@
Ping,
Pong,
Bye(String),
+
Nick(String),
Proto(u16),
+ AskPassword(String),
+
ServerAuth(String),
LobbyLeft(String, String),
LobbyJoined(Vec<String>),
@@ -282,6 +285,7 @@
Bye(msg) => msg!["BYE", msg],
Nick(nick) => msg!["NICK", nick],
Proto(proto) => msg!["PROTO", proto],
+ AskPassword(salt) => msg!["ASKPASSWORD", salt],
ServerAuth(hash) => msg!["SERVER_AUTH", hash],
LobbyLeft(nick, msg) => msg!["LOBBY:LEFT", nick, msg],
LobbyJoined(nicks) => construct_message(&["LOBBY:JOINED"], &nicks),