From a1e4badf4bbcc97398d57eb8886e1cac21ec0394 Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 22 May 2023 21:54:25 -0400 Subject: [PATCH] bug fix nominations cmdlet fillin --- mapvote.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index e849baf..bb32911 100644 --- a/mapvote.js +++ b/mapvote.js @@ -621,7 +621,7 @@ export default class MapVote extends DiscordBasePlugin { if (isRandomVote) { for (const gm of Object.keys(this.options.minGamemodeEntries)) { for (let i = 0; i < +this.options.minGamemodeEntries[gm] && cmdLayers.length < optionAmount; i++) - cmdLayers.push(`*_${gm}`); + cmdLayers.push(`*_*_${gm}`); } while (cmdLayers.length < optionAmount) cmdLayers.push(`*`); @@ -633,6 +633,7 @@ export default class MapVote extends DiscordBasePlugin { if (cmdLayers.length <= maxOptions) { let i = 1; + this.verbose(1, "cmdLayers: " + cmdLayers.join(", ")); for (const cl of cmdLayers) { const cls = cl.toLowerCase().split('_'); //cls[0] = mod, cls[1] = map, cls[2] = gamemode, cls[3] = version, cls[4] = faction const whitefilt = this.layerfilterWlist(sanitizedLayers);