diff --git a/src/admin/server/server_commands.rs b/src/admin/server/server_commands.rs index 79e02e17..cf69d79e 100644 --- a/src/admin/server/server_commands.rs +++ b/src/admin/server/server_commands.rs @@ -18,7 +18,7 @@ pub(crate) async fn uptime(_body: Vec<&str>) -> Result seconds % 60, ); - Ok(RoomMessageEventContent::notice_html(String::new(), result)) + Ok(RoomMessageEventContent::notice_plain(result)) } pub(crate) async fn show_config(_body: Vec<&str>) -> Result { @@ -109,12 +109,12 @@ pub(crate) async fn admin_notice(_body: Vec<&str>, message: Vec) -> Resu pub(crate) async fn reload(_body: Vec<&str>) -> Result { services().server.reload()?; - Ok(RoomMessageEventContent::notice_plain(String::new())) + Ok(RoomMessageEventContent::notice_plain("Reloading server...")) } pub(crate) async fn shutdown(_body: Vec<&str>) -> Result { warn!("shutdown command"); services().server.shutdown()?; - Ok(RoomMessageEventContent::notice_plain(String::new())) + Ok(RoomMessageEventContent::notice_plain("Shutting down server...")) }