diff options
| author | stonedDiscord <Tukz@gmx.de> | 2024-12-12 22:17:39 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2024-12-12 22:17:39 +0100 |
| commit | 8b0b8cac98d650d175ebb26441d415b95fca0e4e (patch) | |
| tree | 272a2ab89833a6742607749971fc55bd7193a118 /webAO/client | |
| parent | 2d8711503a6b4948c1c24f440c17a42cf1cdb134 (diff) | |
akashi expects 2 args for modcalls
Diffstat (limited to 'webAO/client')
| -rw-r--r-- | webAO/client/sender/index.ts | 2 | ||||
| -rw-r--r-- | webAO/client/sender/sendZZ.ts | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/webAO/client/sender/index.ts b/webAO/client/sender/index.ts index a50fce3..e218b6b 100644 --- a/webAO/client/sender/index.ts +++ b/webAO/client/sender/index.ts @@ -49,7 +49,7 @@ export interface ISender { sendCharacter: (character: number) => void; sendRT: (testimony: string) => void; sendMusicChange: (track: string) => void; - sendZZ: (msg: string) => void; + sendZZ: (msg: string, target: number) => void; sendEE: (id: number, name: string, desc: string, img: string) => void; sendDE: (id: number) => void; sendPE: (name: string, desc: string, img: string) => void; 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}#%`); }; |
