From cfb933b598c2c015b41b16051c0d9da2bc985cc0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 8 May 2023 22:44:26 +0200 Subject: Format 1-player option. --- server.js | 4 ++-- 1 file 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(", ") } -- cgit v1.2.3