aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src/command.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2021-05-18 02:36:47 +0200
committerEskil Queseth <eskilq@kth.se>2021-05-18 02:36:47 +0200
commit19267cb7ac28ce51674baa9516ebb36074709d4f (patch)
tree1e6dccb1e5c349ceaab3e267fa339202d7fd16f3 /mumlib/src/command.rs
parent4473bdd1536699c53f27085dd7d4d5d14dd93508 (diff)
downloadmum-19267cb7ac28ce51674baa9516ebb36074709d4f.tar.gz
add ability for backend to keep track of messages
Diffstat (limited to 'mumlib/src/command.rs')
-rw-r--r--mumlib/src/command.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs
index d2e8477..de54261 100644
--- a/mumlib/src/command.rs
+++ b/mumlib/src/command.rs
@@ -29,6 +29,7 @@ pub enum Command {
},
Status,
UserVolumeSet(String, f32),
+ PastMessages,
}
#[derive(Debug, Deserialize, Serialize)]
@@ -55,4 +56,7 @@ pub enum CommandResponse {
Status {
server_state: Server,
},
+ PastMessages {
+ messages: Vec<(String, String)>,
+ }
}