mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix for stats with no chat open
This commit is contained in:
@ -266,7 +266,7 @@ function countWords(str) {
|
|||||||
* @param {string} oldMesssage - The old message that's being processed.
|
* @param {string} oldMesssage - The old message that's being processed.
|
||||||
*/
|
*/
|
||||||
async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
|
async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
|
||||||
if (this_chid === undefined) {
|
if (this_chid === undefined || characters[this_chid] === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await getStats();
|
await getStats();
|
||||||
|
Reference in New Issue
Block a user