diff --git a/src/protections/NsfwProtection.ts b/src/protections/NsfwProtection.ts index af9621b..61c1549 100644 --- a/src/protections/NsfwProtection.ts +++ b/src/protections/NsfwProtection.ts @@ -67,7 +67,7 @@ export class NsfwProtection extends Protection { } } - } else if (prediction["className"] === "Hentai"){ + } else if (prediction["className"] === "Hentai") { if (prediction["probability"] > mjolnir.config.nsfwSensitivity) { await mjolnir.managementRoomOutput.logMessage(LogLevel.INFO, "NSFWProtection", `Redacting ${event["event_id"]} for inappropriate content.`); try { diff --git a/src/protections/ProtectionManager.ts b/src/protections/ProtectionManager.ts index 939920e..9b460c9 100644 --- a/src/protections/ProtectionManager.ts +++ b/src/protections/ProtectionManager.ts @@ -102,7 +102,7 @@ export class ProtectionManager { protection.settings[key].setValue(value); } if (protection.enabled) { - if (protection.name == "NsfwProtection") { + if (protection.name === "NsfwProtection") { (protection as NsfwProtection).initialize() } for (let roomId of this.mjolnir.protectedRoomsTracker.getProtectedRooms()) {