mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-13 01:46:57 +01:00
Fix for stats with no chat open
This commit is contained in:
parent
2a5c240399
commit
c4da1e3576
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user