Fix macros replacement in custom stop strings for OAI

This commit is contained in:
Cohee
2023-08-29 00:47:35 +03:00
parent b10f0b0ae8
commit 1bb2778f46
2 changed files with 17 additions and 9 deletions

View File

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