Actually, totally remove the admin checks from help.py until I can figure out how to make this work well with the new permissions system

This commit is contained in:
Luke Rogers 2013-08-02 00:26:31 +12:00
parent 77499cbb3e
commit 205294dea7
1 changed files with 6 additions and 9 deletions

View File

@ -12,16 +12,13 @@ def help(inp, say=None, notice=None, input=None, conn=None, bot=None):
for command, (func, args) in bot.commands.iteritems():
fn = re.match(r'^plugins.(.+).py$', func._filename)
if fn.group(1).lower() not in disabled:
if not args.get('adminonly', False) or\
input.nick in bot.config["permission_users"]["admins"] or\
input.mask in bot.config["permission_users"]["admins"]:
if command not in disabled_comm:
if func.__doc__ is not None:
if func in funcs:
if len(funcs[func]) < len(command):
funcs[func] = command
else:
if command not in disabled_comm:
if func.__doc__ is not None:
if func in funcs:
if len(funcs[func]) < len(command):
funcs[func] = command
else:
funcs[func] = command
commands = dict((value, key) for key, value in funcs.iteritems())