aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendZZ.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2024-12-12 22:17:39 +0100
committerstonedDiscord <Tukz@gmx.de>2024-12-12 22:17:39 +0100
commit8b0b8cac98d650d175ebb26441d415b95fca0e4e (patch)
tree272a2ab89833a6742607749971fc55bd7193a118 /webAO/client/sender/sendZZ.ts
parent2d8711503a6b4948c1c24f440c17a42cf1cdb134 (diff)
akashi expects 2 args for modcalls
Diffstat (limited to 'webAO/client/sender/sendZZ.ts')
-rw-r--r--webAO/client/sender/sendZZ.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/webAO/client/sender/sendZZ.ts b/webAO/client/sender/sendZZ.ts
index e9bd443..5ff3713 100644
--- a/webAO/client/sender/sendZZ.ts
+++ b/webAO/client/sender/sendZZ.ts
@@ -4,10 +4,6 @@ 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#%");
- }
+export const sendZZ = (msg: string, target: number) => {
+ client.sender.sendServer(`ZZ#${msg}#${target}#%`);
};