--- a/gameServer2/src/protocol/messages.rs Thu Sep 06 23:12:32 2018 +0300
+++ b/gameServer2/src/protocol/messages.rs Fri Sep 07 04:16:05 2018 +0300
@@ -77,6 +77,7 @@
Bye(String),
Nick(String),
Proto(u16),
+ ServerAuth(String),
LobbyLeft(String, String),
LobbyJoined(Vec<String>),
ChatMsg {nick: String, msg: String},
@@ -267,6 +268,7 @@
Bye(msg) => msg!["BYE", msg],
Nick(nick) => msg!["NICK", nick],
Proto(proto) => msg!["PROTO", proto],
+ ServerAuth(hash) => msg!["SERVER_AUTH", hash],
LobbyLeft(nick, msg) => msg!["LOBBY:LEFT", nick, msg],
LobbyJoined(nicks) =>
construct_message(&["LOBBY:JOINED"], &nicks),