diff --git a/azalea-worker/src/main.rs b/azalea-worker/src/main.rs index 3b26fe2..3ebce32 100644 --- a/azalea-worker/src/main.rs +++ b/azalea-worker/src/main.rs @@ -282,7 +282,7 @@ async fn handle_packet(e: Event, config: &Config, client: &mut Client, ws_stream info!("<{} ({})> {}", pkt.username().unwrap_or("SYSTEM".to_string()), pkt.uuid().map(|u| u.to_string()).unwrap_or("SYSTEM".to_string()), pkt.message()); 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.server.uuid)) { info!("sending message"); ws_stream.send(Message::Text(serde_json::to_string(&GatewayPacketC2S::Relay { msg: GatewayChatMessage {