aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendZZ.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client/sender/sendZZ.ts')
-rw-r--r--webAO/client/sender/sendZZ.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/webAO/client/sender/sendZZ.ts b/webAO/client/sender/sendZZ.ts
new file mode 100644
index 0000000..237ab37
--- /dev/null
+++ b/webAO/client/sender/sendZZ.ts
@@ -0,0 +1,13 @@
+import { client, extrafeatures } from "../../client";
+
+/**
+ * Sends call mod command.
+ * @param {string} message to mod
+ */
+export const sendZZ = (msg: string) => {
+ if (extrafeatures.includes("modcall_reason")) {
+ client.sender.sendServer(`ZZ#${msg}#%`);
+ } else {
+ client.sender.sendServer("ZZ#%");
+ }
+} \ No newline at end of file