You can now admin users by nick

This commit is contained in:
lukeroge 2012-03-26 11:25:57 +13:00
parent 9ce44024c2
commit f26e2cd094

View file

@ -36,11 +36,7 @@ def sieve_suite(bot, input, func, kind, args):
if args.get('adminonly', False):
admins = bot.config.get('admins', [])
# admins = ["u3601@irccloud.com", "brjannc@smurfed.org"]
mask = input.user + "@" + input.host
if mask not in admins:
if input.mask not in admins and input.nick not in admins:
return None
return input