now the owner doesn't have to be added in the list of admins
This commit is contained in:
parent
697f8f75c7
commit
ef598ff993
@ -31,7 +31,7 @@ def generate(fdict, **kwargs):
|
||||
largs[0].notice(largs[1], "You are not the owner.")
|
||||
return
|
||||
if admin_only:
|
||||
if cloak and cloak in botconfig.ADMINS:
|
||||
if cloak and (cloak in botconfig.ADMINS or cloak == botconfig.OWNER):
|
||||
return f(*largs)
|
||||
elif cloak:
|
||||
largs[0].notice(largs[1], "You are not an admin.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user