more optimizations

This commit is contained in:
zefie
2025-08-11 16:16:44 -04:00
parent 6d660f387b
commit c4b8fd03dc
6 changed files with 22 additions and 20 deletions

View File

@@ -252,7 +252,7 @@ class WTVIRC {
data = data.toString('ascii');
}
if (data.length > this.max_message_len) {
data = data.alice(0, this.max_message_len - 2) + '\r\n';
data = data.slice(0, this.max_message_len - 2) + '\r\n';
this.debugLog('warn', `Data length exceeds max_message_len (${this.max_message_len}), truncating: ${data.length} > ${this.max_message_len}`);
}