aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/callMod.ts
blob: a2e2685e9bb737cea2bdd7ae1d989d90414aeb66 (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.sender.sendZZ(modcall);
    }
}
window.callMod = callMod;