added input.mask. returns 'user@host'

This commit is contained in:
Luke Rogers 2012-03-22 17:04:48 +13:00
parent 0c3e78bdce
commit 3e5c2c94d9
3 changed files with 7 additions and 5 deletions

View file

@ -12,7 +12,7 @@ def help(inp, input=None, bot=None, say=None, notice=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 input.bot.config["admins"]:
if not args.get('adminonly', False) or input.mask in input.bot.config["admins"]:
if command not in disabled_comm:
if func.__doc__ is not None:
if func in funcs: