|
|
@ -6,6 +6,7 @@ use crate::queue::SendQueue;
|
|
|
|
use crate::state::State;
|
|
|
|
use crate::state::State;
|
|
|
|
|
|
|
|
|
|
|
|
impl Command {
|
|
|
|
impl Command {
|
|
|
|
|
|
|
|
/// Quit the game
|
|
|
|
pub fn dispatch_quit(&self, _: String, token: Token, _: &mut Db) -> SendQueue {
|
|
|
|
pub fn dispatch_quit(&self, _: String, token: Token, _: &mut Db) -> SendQueue {
|
|
|
|
SendQueue(vec![(token, "Goodbye\n\n".into(), false, Some(State::Quit))].into())
|
|
|
|
SendQueue(vec![(token, "Goodbye\n\n".into(), false, Some(State::Quit))].into())
|
|
|
|
}
|
|
|
|
}
|
|
|
|