From da3297fdcb43bca07a7be258ba23d4d0e13eaad2 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 25 Feb 2024 16:09:26 -0500 Subject: [PATCH] add !admin as way to call conduit bot Signed-off-by: strawberry --- src/service/rooms/timeline/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/service/rooms/timeline/mod.rs b/src/service/rooms/timeline/mod.rs index 96e95d7f..38b038e0 100644 --- a/src/service/rooms/timeline/mod.rs +++ b/src/service/rooms/timeline/mod.rs @@ -529,6 +529,7 @@ impl Service { let to_conduit = body.starts_with(&format!("{server_user}: ")) || body.starts_with(&format!("{server_user} ")) + || body.starts_with("!admin") || body == format!("{server_user}:") || body == server_user;