diff --git a/src/main.rs b/src/main.rs index 8dbea00..1e268c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ async fn on_room_message(event: OriginalSyncRoomMessageEvent, room: Room) { } // Too short to be a scam lol - if text_content.body.len() < 12 { return } + if text_content.body.chars().count() < 12 { return } let text_content = text_content.body.to_lowercase();