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:
parent
77499cbb3e
commit
205294dea7
1 changed files with 6 additions and 9 deletions
|
@ -12,9 +12,6 @@ def help(inp, say=None, notice=None, input=None, conn=None, bot=None):
|
||||||
for command, (func, args) in bot.commands.iteritems():
|
for command, (func, args) in bot.commands.iteritems():
|
||||||
fn = re.match(r'^plugins.(.+).py$', func._filename)
|
fn = re.match(r'^plugins.(.+).py$', func._filename)
|
||||||
if fn.group(1).lower() not in disabled:
|
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 command not in disabled_comm:
|
||||||
if func.__doc__ is not None:
|
if func.__doc__ is not None:
|
||||||
if func in funcs:
|
if func in funcs:
|
||||||
|
|
Reference in a new issue