aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleKK.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets/handlers/handleKK.ts')
-rw-r--r--webAO/packets/handlers/handleKK.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleKK.ts b/webAO/packets/handlers/handleKK.ts
new file mode 100644
index 0000000..fd9a88c
--- /dev/null
+++ b/webAO/packets/handlers/handleKK.ts
@@ -0,0 +1,11 @@
+import { client } from "../../client";
+import { safeTags } from "../../encoding";
+
+
+/**
+ * Handles the kicked packet
+ * @param {Array} args kick reason
+ */
+export const handleKK = (args: string[]) => {
+ client.handleBans("Kicked", safeTags(args[1]));
+}