Skip to content

Commit

Permalink
akashi expects 2 args for modcalls
Browse files Browse the repository at this point in the history
  • Loading branch information
stonedDiscord committed Dec 12, 2024
1 parent 2d87115 commit 8b0b8ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion webAO/client/sender/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 2 additions & 6 deletions webAO/client/sender/sendZZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}#%`);
};
2 changes: 1 addition & 1 deletion webAO/dom/callMod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function callMod() {
if (modcall == null || modcall === "") {
// cancel
} else {
client.sender.sendZZ(modcall);
client.sender.sendZZ(modcall,-1);
}
}
window.callMod = callMod;

0 comments on commit 8b0b8ca

Please sign in to comment.