hotfix: a

This commit is contained in:
core 2023-07-22 12:47:42 -04:00
parent 8d73f281d2
commit 2ce2aa475a
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ pub async fn handle_message(p: ChatPacket, client: &mut Client, config: &Config)
components.remove(0);
}
if components.len() == 0 {
return; // hotfix: fuck you dam
}
let is_for_me = components[0].starts_with(&format!("!@{}", config.server.username)) || (!components[0].starts_with("!@") && components[0].starts_with("!"));
if !is_for_me { return; }