From 0f0d7c7d19a832e93832ffaf40f2c7f3df535a12 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Tue, 26 Jul 2011 17:25:05 -0500 Subject: [PATCH] now the owner doesn't have to be added in the list of admins --- decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decorators.py b/decorators.py index 7de645a..39557c2 100644 --- a/decorators.py +++ b/decorators.py @@ -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.")