gameServer2/src/protocol/messages.rs
changeset 12146 78925eff02c2
parent 12142 193dfdcb0620
child 12147 4d7d41be1993
--- a/gameServer2/src/protocol/messages.rs	Wed Jan 18 22:23:41 2017 +0300
+++ b/gameServer2/src/protocol/messages.rs	Wed Jan 18 22:54:02 2017 +0300
@@ -112,9 +112,11 @@
                 ]),
             &HWProtocolMessage::Bye(msg)
                 => construct_message(&["BYE", msg]),
+            &HWProtocolMessage::Nick(nick)
+            => construct_message(&["NICK", nick]),
             &HWProtocolMessage::LobbyLeft(msg)
                 => construct_message(&["LOBBY_LEFT", msg]),
-            _ => String::new()
+            _ => construct_message(&["ERROR", "UNIMPLEMENTED"]),
         }
     }
 }