Merge branch 'staging' into char-find-and-sendas-extended

This commit is contained in:
Cohee
2024-09-30 22:15:38 +03:00
5 changed files with 85 additions and 57 deletions

View File

@ -2598,8 +2598,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