pull/150/head
Who? 2025-06-12 07:37:42 +00:00
parent 76b074be47
commit 742c0d17c5
1 changed files with 32 additions and 32 deletions

View File

@ -515,10 +515,10 @@ class HerokuSettingsMod(loader.Module):
@loader.command() @loader.command()
async def remove_core_protection(self, message: Message): async def remove_core_protection(self, message: Message):
if self._db.get(main.__name__, "remove_core_protection", False): if self._db.get(main.__name__, "remove_core_protection") == True:
await utils.answer(message, self.strings("core_protection_already_removed")) await utils.answer(message, self.strings("core_protection_already_removed"))
return return
else:
await self.inline.form( await self.inline.form(
message=message, message=message,
text=self.strings("core_protection_confirm"), text=self.strings("core_protection_confirm"),
@ -540,10 +540,10 @@ class HerokuSettingsMod(loader.Module):
@loader.command() @loader.command()
async def enable_core_protection(self, message: Message): async def enable_core_protection(self, message: Message):
if self._db.get(main.__name__, "remove_core_protection", False): if self._db.get(main.__name__, "remove_core_protection") == False:
await utils.answer(message, self.strings("core_protection_already_enabled")) await utils.answer(message, self.strings("core_protection_already_enabled"))
return return
else:
await self.inline.form( await self.inline.form(
message=message, message=message,
text=self.strings("core_protection_confirm_e"), text=self.strings("core_protection_confirm_e"),