custom_stopping_strings_macro toggleable option

This commit is contained in:
Stefan Daniel Schwarz
2023-08-04 16:53:49 +02:00
parent 33af7ad266
commit b407fe2388
4 changed files with 19 additions and 1 deletions

View File

@@ -1750,7 +1750,11 @@ function getStoppingStrings(isImpersonate, addSpace) {
if (power_user.custom_stopping_strings) {
const customStoppingStrings = getCustomStoppingStrings();
result.push(...customStoppingStrings.map(x => substituteParams(x, name1, name2)));
if (power_user.custom_stopping_strings_macro) {
result.push(...customStoppingStrings.map(x => substituteParams(x, name1, name2)));
} else {
result.push(...customStoppingStrings);
}
}
return addSpace ? result.map(x => `${x} `) : result;