aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendZZ.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-09-09 17:19:51 +0200
committerGitHub <noreply@github.com>2022-09-09 17:19:51 +0200
commit09a23ea9d7ee37d8e2dfb036786c41ce37496c51 (patch)
treedeb962d3fa12966f0f7a29c9ed1784b3c83b5e40 /webAO/client/sender/sendZZ.ts
parent23d4ef48f894adf601039fe574a0e7dfe918a105 (diff)
parent776fe2f4241a67be354908df546f300f413a7d42 (diff)
Merge pull request #172 from caleb-mabry/finishing-sender
I'm so sorry - Finished moving sender functions
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