diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-08-30 23:55:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-30 23:55:45 +0200 |
| commit | a453315983f6fa71b2b9f953d505cf63f6d7d8d0 (patch) | |
| tree | e4c5ad3f1855dc2a15b7652c32b318fcee37a571 /webAO/packets/handlers/handleBD.ts | |
| parent | fd76aa9ea07c937e92d5f9f65b58c6f16957ce55 (diff) | |
| parent | 56026c522ba84bc0211a896398d701cb79725b54 (diff) | |
Merge pull request #159 from caleb-mabry/5-scary
Five packets
Diffstat (limited to 'webAO/packets/handlers/handleBD.ts')
| -rw-r--r-- | webAO/packets/handlers/handleBD.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleBD.ts b/webAO/packets/handlers/handleBD.ts new file mode 100644 index 0000000..4ec291e --- /dev/null +++ b/webAO/packets/handlers/handleBD.ts @@ -0,0 +1,13 @@ +import { client, setBanned } from "../../client"; +import { safeTags } from "../../encoding"; + + +/** + * Handles the banned packet + * this one is sent when you try to reconnect but you're banned + * @param {Array} args ban reason + */ +export const handleBD = (args: string[]) => { + client.handleBans("Banned", safeTags(args[1])); + setBanned(true); +}
\ No newline at end of file |
