make the bot more bettererer

This commit is contained in:
core 2023-07-17 19:35:48 -04:00
parent 979e758bf0
commit af820871e8
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ async fn handle_packet(e: Event, config: &Arc<RwLock<Config>>, reciever: &Receiv
handle_message(pkt.clone(), client, config).await; 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)) { if !(re.is_match(&pkt.content()) && pkt.uuid() == Some(config.read().await.relay.uuid)) {
for wh in webhooks { for wh in webhooks {
wh wh