Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cogs/sysmgr.py
Original file line number Diff line number Diff line change
@@ -433,10 +433,8 @@ async def unload(self, ctx, *, extensions):
text = ''
for extension in extensions:
try:
if extension == 'admin':
raise ValueError('Cannot unload the admin extension, let\'s not break the bot here!')
if extension == 'extmgr':
raise ValueError('Cannot unload the extmgr extension, let\'s not break the bot here!')
if extension == 'sysmgr':
raise ValueError('Cannot unload the sysmgr extension, let\'s not break the bot here!')
if extension == 'lockdown':
raise ValueError('Cannot unload lockdown extension for security purposes.')
await self.preunload(extension)

0 comments on commit 8185dab

Please sign in to comment.