aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 58a8c61..0b06670 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -317,7 +317,11 @@ class Client extends EventEmitter {
* @param {string} message to mod
*/
sendZZ(msg) {
- this.sendServer(`ZZ#${msg}#%`);
+ if (extrafeatures.includes("modcall_reason")) {
+ this.sendServer(`ZZ#${msg}#%`);
+ } else {
+ this.sendServer(`ZZ#%`);
+ }
}
/**
@@ -2590,7 +2594,10 @@ window.randomCharacterOOC = randomCharacterOOC;
* Call mod.
*/
export function callMod() {
- let modcall = prompt("Please enter the reason for the modcall", "");
+ let modcall;
+ if (extrafeatures.includes("modcall_reason")) {
+ modcall = prompt("Please enter the reason for the modcall", "");
+ }
if (modcall == null || modcall === "") {
// cancel
} else {