aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib
diff options
context:
space:
mode:
Diffstat (limited to 'mumlib')
-rw-r--r--mumlib/Cargo.toml2
-rw-r--r--mumlib/src/command.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/mumlib/Cargo.toml b/mumlib/Cargo.toml
index 5c9d4e1..5ec9365 100644
--- a/mumlib/Cargo.toml
+++ b/mumlib/Cargo.toml
@@ -13,7 +13,7 @@ readme = "../README.md"
[dependencies]
colored = "2"
-chrono = "0.4"
+chrono = { version = "0.4", features = [ "serde" ] }
dirs = "3"
fern = "0.6"
log = "0.4"
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs
index 351d7f6..27ca60c 100644
--- a/mumlib/src/command.rs
+++ b/mumlib/src/command.rs
@@ -1,5 +1,6 @@
use crate::state::{Channel, Server};
+use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
@@ -63,7 +64,7 @@ pub enum CommandResponse {
server_state: Server,
},
PastMessage {
- message: (String, String),
+ message: (NaiveDateTime, String, String),
},
}