From 2ce2aa475a0805e13c540bc412f67d8c18b8db25 Mon Sep 17 00:00:00 2001 From: core Date: Sat, 22 Jul 2023 12:47:42 -0400 Subject: [PATCH] hotfix: a --- azalea-worker/src/bacon.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azalea-worker/src/bacon.rs b/azalea-worker/src/bacon.rs index 0b3abae..04cdc91 100644 --- a/azalea-worker/src/bacon.rs +++ b/azalea-worker/src/bacon.rs @@ -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; }