diff options
Diffstat (limited to 'webAO/packets')
| -rw-r--r-- | webAO/packets/handlers/handleBD.ts | 4 | ||||
| -rw-r--r-- | webAO/packets/handlers/handleKB.ts | 4 | ||||
| -rw-r--r-- | webAO/packets/handlers/handleKK.ts | 5 |
3 files changed, 7 insertions, 6 deletions
diff --git a/webAO/packets/handlers/handleBD.ts b/webAO/packets/handlers/handleBD.ts index 47c191d..fde4fe1 100644 --- a/webAO/packets/handlers/handleBD.ts +++ b/webAO/packets/handlers/handleBD.ts @@ -1,4 +1,4 @@ -import { setBanned } from "../../client"; +import { client } from "../../client"; import { handleBans } from "../../client/handleBans"; /** @@ -7,6 +7,6 @@ import { handleBans } from "../../client/handleBans"; * @param {Array} args ban reason */ export const handleBD = (args: string[]) => { + client.banned = true; handleBans("Banned", args[1]); - setBanned(true); }; diff --git a/webAO/packets/handlers/handleKB.ts b/webAO/packets/handlers/handleKB.ts index 78f5721..4679780 100644 --- a/webAO/packets/handlers/handleKB.ts +++ b/webAO/packets/handlers/handleKB.ts @@ -1,4 +1,4 @@ -import { setBanned } from "../../client"; +import { client } from "../../client"; import { handleBans } from "../../client/handleBans"; /** @@ -7,6 +7,6 @@ import { handleBans } from "../../client/handleBans"; * @param {Array} args ban reason */ export const handleKB = (args: string[]) => { + client.banned = true; handleBans("Banned", args[1]); - setBanned(true); }; 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]); }; |
