From 0a05d3196bf3916a02dd9d8c672c44e4a818d264 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Sun, 21 Apr 2024 15:52:36 -0400 Subject: [PATCH] set parser flag without explicit state to "on" --- public/scripts/slash-commands/SlashCommandParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands/SlashCommandParser.js b/public/scripts/slash-commands/SlashCommandParser.js index f18a32274..92e09cd78 100644 --- a/public/scripts/slash-commands/SlashCommandParser.js +++ b/public/scripts/slash-commands/SlashCommandParser.js @@ -495,7 +495,7 @@ export class SlashCommandParser { this.take(13); // discard "/parser-flag " const [flag, state] = this.parseUnnamedArgument()?.split(/\s+/) ?? [null, null]; if (Object.keys(PARSER_FLAG).includes(flag)) { - this.flags[PARSER_FLAG[flag]] = isTrueBoolean(state); + this.flags[PARSER_FLAG[flag]] = isTrueBoolean(state ?? 'on'); } cmd.end = this.index; }