diff options
| -rw-r--r-- | mumd/src/state.rs | 3 | ||||
| -rw-r--r-- | mumlib/src/command.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index 71f7358..7a4704a 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -303,6 +303,9 @@ impl State { self.audio.set_output_volume(volume); now!(Ok(None)) } + Command::Ping => { + now!(Ok(Some(CommandResponse::Pong))) + } Command::ServerConnect { host, port, diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index 8c54b20..73a065d 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -14,6 +14,7 @@ pub enum Command { MuteOther(String, Option<bool>), MuteSelf(Option<bool>), OutputVolumeSet(f32), + Ping, ServerConnect { host: String, port: u16, @@ -40,6 +41,7 @@ pub enum CommandResponse { MuteStatus { is_muted: bool, }, + Pong, ServerConnect { welcome_message: Option<String>, }, |
