summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-08 22:44:26 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-08 22:44:26 +0200
commitcfb933b598c2c015b41b16051c0d9da2bc985cc0 (patch)
treee77a64449e6486071570414a8f611f649f03acec
parente4e8744269b4c322323751da66eff9220ddd92e1 (diff)
downloadserver-cfb933b598c2c015b41b16051c0d9da2bc985cc0.tar.gz
Format 1-player option.
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.js b/server.js
index 859a409..8dbf871 100644
--- a/server.js
+++ b/server.js
@@ -1221,10 +1221,10 @@ function format_options(options) {
return k.replace(/_/g, " ").replace(/^\w/, c => c.toUpperCase())
}
return Object.entries(options||{}).map(([k,v]) => {
- if (v === true || v === 1)
- return to_english(k)
if (k === "players")
return v + " Player"
+ if (v === true || v === 1)
+ return to_english(k)
return to_english(k) + "=" + to_english(v)
}).join(", ")
}