From 4676dd644a6bf4bf44240a523e6606a78397a2b1 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Tue, 24 Dec 2024 15:02:47 +0100 Subject: fix connection errors --- webAO/packets/handlers/handleKK.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webAO/packets/handlers/handleKK.ts') diff --git a/webAO/packets/handlers/handleKK.ts b/webAO/packets/handlers/handleKK.ts index 4114139..7aedaa4 100644 --- a/webAO/packets/handlers/handleKK.ts +++ b/webAO/packets/handlers/handleKK.ts @@ -1,4 +1,4 @@ -import { safeTags } from "../../encoding"; +import { client } from "../../client"; import { handleBans } from "../../client/handleBans"; /** @@ -6,5 +6,6 @@ import { handleBans } from "../../client/handleBans"; * @param {Array} args kick reason */ export const handleKK = (args: string[]) => { - handleBans("Kicked", safeTags(args[1])); + client.banned = true; + handleBans("Kicked", args[1]); }; -- cgit