gameServer2/src/protocol/messages.rs
changeset 13444 914f9b970f4d
parent 13440 30ee161d85d0
child 13450 d79795acaa73
--- a/gameServer2/src/protocol/messages.rs	Wed Jul 04 18:49:51 2018 +0300
+++ b/gameServer2/src/protocol/messages.rs	Fri Jul 06 16:27:25 2018 +0200
@@ -76,7 +76,7 @@
     Proto(u32),
     LobbyLeft(String, String),
     LobbyJoined(Vec<String>),
-    ChatMsg(String, String),
+    ChatMsg {nick: String, msg: String},
     ClientFlags(String, Vec<String>),
     Rooms(Vec<String>),
     RoomAdd(Vec<String>),
@@ -284,7 +284,7 @@
             ForwardEngineMessage(em) =>
                 construct_message(&["EM"], &em),
             RoundFinished => msg!["ROUND_FINISHED"],
-            ChatMsg(nick, msg) => msg!["CHAT", nick, msg],
+            ChatMsg {nick, msg} => msg!["CHAT", nick, msg],
             ServerMessage(msg) => msg!["SERVER_MESSAGE", msg],
             Warning(msg) => msg!["WARNING", msg],
             Error(msg) => msg!["ERROR", msg],