diff --git a/src/bot.rs b/src/bot.rs index f0674a2..8b1ee20 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -114,7 +114,7 @@ async fn handle_packet(e: Event, config: &Arc>, reciever: &Receiv handle_message(pkt.clone(), client, config).await; - let re = Regex::new(r"@[a-z0-9]+:").unwrap(); + let re = Regex::new(r"@[a-z0-9_-]+:").unwrap(); if !(re.is_match(&pkt.content()) && pkt.uuid() == Some(config.read().await.relay.uuid)) { for wh in webhooks { wh