From af820871e8cd9df2fd4f61cabeba65de04e38477 Mon Sep 17 00:00:00 2001 From: core Date: Mon, 17 Jul 2023 19:35:48 -0400 Subject: [PATCH] make the bot more bettererer --- src/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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