aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/callMod.ts
blob: 28a96270481700a41bd64c01704e3531b1806b49 (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, -1);
  }
}
window.callMod = callMod;