admin is now granted by hostmask user@host
This commit is contained in:
parent
b47482a07a
commit
0c3e78bdce
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@ def sieve_suite(bot, input, func, kind, args):
|
||||||
if args.get('adminonly', False):
|
if args.get('adminonly', False):
|
||||||
admins = bot.config.get('admins', [])
|
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 None
|
||||||
|
|
||||||
return input
|
return input
|
||||||
|
|
Reference in a new issue