Fixed Admin-by-nick bug

This commit is contained in:
neersighted 2012-04-02 10:30:58 -07:00
parent 950aa9e5a9
commit bfa42ea220

View file

@ -32,7 +32,7 @@ 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.nick not in admins and input.mask not in admins: if input.nick.lower() not in admins and input.mask.lower() not in admins:
input.notice("Sorry, you are not allowed to use this command.") input.notice("Sorry, you are not allowed to use this command.")
return None return None