fix and optimize (except WTVIRC, it needs a lot of work)

This commit is contained in:
zefie
2025-08-12 17:44:26 -04:00
parent 733200c897
commit a85efc9968
22 changed files with 504 additions and 518 deletions

View File

@@ -31,13 +31,13 @@ class WTVShenanigans {
* @returns {boolean} True if the shenanigan is enabled, false otherwise.
*/
checkShenanigan(value) {
var level = this.getShenanigansLevel();
const level = this.getShenanigansLevel();
// shenanigans are disabled, don't iterate
if (level === false) return false;
var retval = false;
var shenanigans = this.shenanigans;
let retval = false;
const shenanigans = this.shenanigans;
// shenanigans are enabled, so check if the requested shenanigan is within the level enabled
Object.keys(shenanigans).forEach((k) => {