the cooler ternary

This commit is contained in:
qvink
2025-03-22 16:43:08 -06:00
parent 900575ee1a
commit 36adb6992e

View File

@ -6031,8 +6031,8 @@ export function cleanUpMessage({ getMessage, isImpersonate, isContinue, displayI
// This only occurs if the corresponding "power_user.allow_nameX_display" is false. // This only occurs if the corresponding "power_user.allow_nameX_display" is false.
let wrongName = isImpersonate let wrongName = isImpersonate
? (power_user.allow_name2_display ? '' : name2) // char ? (!power_user.allow_name2_display ? name2 : '') // char
: (power_user.allow_name1_display ? '' : name1); // user : (!power_user.allow_name1_display ? name1 : ''); // user
if (wrongName) { if (wrongName) {
// If the message starts with the wrong name, delete the entire response // If the message starts with the wrong name, delete the entire response