aboutsummaryrefslogtreecommitdiffstats
path: root/mumd
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-06-08 09:46:59 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-06-08 09:46:59 +0200
commit2aafe6967e38851d56f747cb3e615da7e9fa9bf1 (patch)
treea83a32df551fd0b0ede161401cb30deab9fe7c88 /mumd
parentf22d3847a23484122fad83b22d7ca48316c9d7cd (diff)
downloadmum-2aafe6967e38851d56f747cb3e615da7e9fa9bf1.tar.gz
doc
Diffstat (limited to 'mumd')
-rw-r--r--mumd/src/state.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs
index 3aa330f..d0a7e4b 100644
--- a/mumd/src/state.rs
+++ b/mumd/src/state.rs
@@ -297,6 +297,7 @@ impl State {
.play_effect(NotificationEvents::ServerConnect);
}
+ /// Store a new event
pub fn push_event(&mut self, kind: MumbleEventKind) {
self.events.push(MumbleEvent { timestamp: chrono::Local::now().naive_local(), kind });
}