mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix /echo mishandling non-string values
This commit is contained in:
@ -2015,6 +2015,9 @@ async function echoCallback(args, value) {
|
|||||||
args.severity = null;
|
args.severity = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure that the value is a string
|
||||||
|
value = String(value);
|
||||||
|
|
||||||
const title = args.title ? args.title : undefined;
|
const title = args.title ? args.title : undefined;
|
||||||
const severity = args.severity ? args.severity : 'info';
|
const severity = args.severity ? args.severity : 'info';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user