Browse Source

fix small bug from last commit

master
jcao219 13 years ago
parent
commit
11d0cc283f
  1. 2
      decorators.py

2
decorators.py

@ -31,7 +31,7 @@ def generate(fdict, **kwargs): @@ -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 or cloak == botconfig.OWNER):
if cloak and (cloak in botconfig.ADMINS or cloak in botconfig.OWNERS):
return f(*largs)
elif cloak:
largs[0].notice(largs[1], "You are not an admin.")

Loading…
Cancel
Save