|
@@ -386,9 +386,9 @@ class Command(object):
|
|
|
|
|
|
def command(admin, state, access, arguments, description):
|
|
|
def command(function):
|
|
|
- clazz = inspect.getouterframes(inspect.currentframe())[1][0].f_locals
|
|
|
+ cls = inspect.getouterframes(inspect.currentframe())[1][0].f_locals
|
|
|
|
|
|
- clazz.setdefault('commands', {})[function.func_name] = Command(admin, state, access, arguments, description, function)
|
|
|
+ cls.setdefault('commands', {})[function.func_name] = Command(admin, state, access, arguments, description, function)
|
|
|
|
|
|
return function
|
|
|
|