gameServer2/src/protocol/messages.rs
changeset 13800 0118b7412570
parent 13798 4664da990556
child 13801 5fb40c8e5542
--- 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),