mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
Fix /ask in neutral chats
This commit is contained in:
parent
9f0c2300d2
commit
2f43c8e227
@ -2530,8 +2530,13 @@ async function askCharacter(args, text) {
|
||||
return;
|
||||
}
|
||||
|
||||
setCharacterId(prevChId);
|
||||
setCharacterName(characters[prevChId].name);
|
||||
if (prevChId !== undefined) {
|
||||
setCharacterId(prevChId);
|
||||
setCharacterName(characters[prevChId].name);
|
||||
} else {
|
||||
setCharacterId(undefined);
|
||||
setCharacterName(neutralCharacterName);
|
||||
}
|
||||
|
||||
// Only force the new avatar if the character name is the same
|
||||
// This skips if an error was fired
|
||||
|
Loading…
Reference in New Issue
Block a user