diff --git a/Cargo.toml b/Cargo.toml index 4cda67a..f2ffc42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moo" -version = "0.0.13" +version = "0.0.14" edition = "2021" authors = ["hinto-janai"] repository = "https://github.com/Cuprate/moo" diff --git a/src/meeting.rs b/src/meeting.rs index 1542521..552a51e 100644 --- a/src/meeting.rs +++ b/src/meeting.rs @@ -77,6 +77,13 @@ pub async fn meeting_handler(startup: SystemTime, event: SyncRoomMessageEvent) { _ => "", }; + // HACK: do not relay ``` as it messes up the meeting log formatting: + // + if text == "```" { + info!("Ignoring ```"); + return; + } + let mut db = MEETING_DATABASE.lock().await; if MEETING_ONGOING.load(std::sync::atomic::Ordering::Acquire) { *db += &format!("\n```\n{}: {text}\n```", sender.localpart());