mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-05 21:46:49 +01:00
Check for avatar file name match in sendas
This commit is contained in:
parent
bdc7177b61
commit
2ff1d600fc
@ -2762,7 +2762,7 @@ export async function sendMessageAs(args, text) {
|
||||
const isSystem = bias && !removeMacros(mesText).length;
|
||||
const compact = isTrueBoolean(args?.compact);
|
||||
|
||||
const character = characters.find(x => x.name === name);
|
||||
const character = characters.find(x => x.avatar === name) ?? characters.find(x => x.name === name);
|
||||
let force_avatar, original_avatar;
|
||||
|
||||
if (character && character.avatar !== 'none') {
|
||||
|
Loading…
Reference in New Issue
Block a user