equal
deleted
inserted
replaced
58 server_state: &mut super::ServerState, |
58 server_state: &mut super::ServerState, |
59 client_id: ClientId, |
59 client_id: ClientId, |
60 response: &mut super::Response, |
60 response: &mut super::Response, |
61 message: HwProtocolMessage, |
61 message: HwProtocolMessage, |
62 ) -> LoginResult { |
62 ) -> LoginResult { |
|
63 //todo!("Handle parsing of empty nicks") |
63 match message { |
64 match message { |
64 HwProtocolMessage::Quit(_) => { |
65 HwProtocolMessage::Quit(_) => { |
65 response.add(Bye("User quit".to_string()).send_self()); |
66 response.add(Bye("User quit".to_string()).send_self()); |
66 LoginResult::Exit |
67 LoginResult::Exit |
67 } |
68 } |