aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/callMod.ts
blob: 0c52433963d28aa2c8a72b5672c080dc9f9a9341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { client, extrafeatures } from "../client";
/**
 * Call mod.
 */
export function callMod() {
    let modcall;
    if (extrafeatures.includes("modcall_reason")) {
        modcall = prompt("Please enter the reason for the modcall", "");
    }
    if (modcall == null || modcall === "") {
        // cancel
    } else {
        client.sendZZ(modcall);
    }
}
window.callMod = callMod;