add more flags

This commit is contained in:
velzie 2024-08-31 14:49:08 -04:00
parent 7adf76d37f
commit 4d1b7ef1b8
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
10 changed files with 85 additions and 57 deletions

View file

@ -133,7 +133,7 @@ export class ScramjetClient {
for (const module of modules) {
if (!module.enabled || module.enabled())
module.default(this, this.global);
else module.disabled(this, this.global);
else if (module.disabled) module.disabled(this, this.global);
}
}