fix small bug from last commit

This commit is contained in:
Jimmy Cao 2011-07-27 19:34:08 -05:00
parent 16131895c1
commit b62c1045bc

View File

@ -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.")