Fix typos

This commit is contained in:
omahs
2025-05-29 11:56:59 +02:00
committed by GitHub
parent 87df4db1a4
commit d7d20a67fa
10 changed files with 19 additions and 19 deletions

View File

@@ -264,9 +264,9 @@ function countWords(str) {
* @param {string} type - The type of the message processing (e.g., 'append', 'continue', 'appendFinal', 'swipe').
* @param {Object} characters - Object containing character data.
* @param {string} this_chid - The character id.
* @param {string} oldMesssage - The old message that's being processed.
* @param {string} oldMessage - The old message that's being processed.
*/
async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
async function statMesProcess(line, type, characters, this_chid, oldMessage) {
if (this_chid === undefined || characters[this_chid] === undefined) {
return;
}
@@ -295,7 +295,7 @@ async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
stat.user_msg_count++;
stat.user_word_count += countWords(line.mes);
} else {
let oldLen = oldMesssage.split(' ').length;
let oldLen = oldMessage.split(' ').length;
stat.user_word_count += countWords(line.mes) - oldLen;
}
} else {
@@ -305,7 +305,7 @@ async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
stat.non_user_msg_count++;
stat.non_user_word_count += countWords(line.mes);
} else {
let oldLen = oldMesssage.split(' ').length;
let oldLen = oldMessage.split(' ').length;
stat.non_user_word_count += countWords(line.mes) - oldLen;
}
}