gameServer2/src/protocol/messages.rs
changeset 12141 78925eff02c2
parent 12137 193dfdcb0620
child 12142 4d7d41be1993
equal deleted inserted replaced
12140:7e259e47eb0d 12141:78925eff02c2
   110                     "Hedgewars server http://www.hedgewars.org/",
   110                     "Hedgewars server http://www.hedgewars.org/",
   111                     &protocol_version.to_string()
   111                     &protocol_version.to_string()
   112                 ]),
   112                 ]),
   113             &HWProtocolMessage::Bye(msg)
   113             &HWProtocolMessage::Bye(msg)
   114                 => construct_message(&["BYE", msg]),
   114                 => construct_message(&["BYE", msg]),
       
   115             &HWProtocolMessage::Nick(nick)
       
   116             => construct_message(&["NICK", nick]),
   115             &HWProtocolMessage::LobbyLeft(msg)
   117             &HWProtocolMessage::LobbyLeft(msg)
   116                 => construct_message(&["LOBBY_LEFT", msg]),
   118                 => construct_message(&["LOBBY_LEFT", msg]),
   117             _ => String::new()
   119             _ => construct_message(&["ERROR", "UNIMPLEMENTED"]),
   118         }
   120         }
   119     }
   121     }
   120 }
   122 }