mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Regex: Add slash command input hook
Slash command output for sys and sendas commands were being formatted, but add the ability for user placement to also apply to slash command invocations. Some slash commands will require an output hook, so add exclusions inside the code itself. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -201,6 +201,16 @@ function migrateSettings() {
|
||||
|
||||
performSave = true;
|
||||
}
|
||||
|
||||
// Old system and sendas placement migration
|
||||
// 4 - sendAs
|
||||
if (script.placement.includes(4)) {
|
||||
script.placement = script.placement.length === 1 ?
|
||||
[regex_placement.SLASH_COMMAND] :
|
||||
script.placement = script.placement.filter((e) => e !== 4);
|
||||
|
||||
performSave = true;
|
||||
}
|
||||
});
|
||||
|
||||
if (performSave) {
|
||||
|
Reference in New Issue
Block a user