It was very close.

This commit is contained in:
Cohee 2024-09-10 22:37:53 +03:00
parent d21b24666a
commit aed4a8e36d
1 changed files with 1 additions and 1 deletions

View File

@ -3130,7 +3130,7 @@ export async function sendMessageAs(args, text) {
const character = characters.find(x => x.avatar === name) ?? characters.find(x => x.name === name);
let force_avatar, original_avatar;
const chatCharacter = this_chid !== null ? characters[this_chid] : null;
const chatCharacter = this_chid !== undefined ? characters[this_chid] : null;
const isNeutralCharacter = !chatCharacter && name2 === neutralCharacterName && name === neutralCharacterName;
if (chatCharacter === character || isNeutralCharacter) {