admin is now granted by hostmask user@host

This commit is contained in:
Luke Rogers 2012-03-22 16:17:45 +13:00
parent b47482a07a
commit 0c3e78bdce

View file

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