From ec0eae4bf64c38d201ac94fc2659b89f50da2b39 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 25 Apr 2012 14:03:20 +1200 Subject: [PATCH] Case sensitivity is better then derpy case-insensitivity --- plugins/admin.py | 4 ++-- plugins/sieve.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/admin.py b/plugins/admin.py index cb4390f..94c1abe 100755 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -22,7 +22,7 @@ def admins(inp, notice=None, bot=None): def addadmin(inp, notice=None, bot=None, config=None): ".addadmin -- Make an admin. " \ "(you can add multiple admins at once)" - targets = inp.lower().split() + targets = inp.split() for target in targets: if target in bot.config["admins"]: notice("%s is already an admin." % target) @@ -38,7 +38,7 @@ def addadmin(inp, notice=None, bot=None, config=None): def deladmin(inp, notice=None, bot=None, config=None): ".deladmin -- Make a non-admin." \ "(you can delete multiple admins at once)" - targets = inp.lower().split() + targets = inp.split() for target in targets: if target in bot.config["admins"]: notice("%s is no longer an admin." % target) diff --git a/plugins/sieve.py b/plugins/sieve.py index ce7e0c6..569414e 100755 --- a/plugins/sieve.py +++ b/plugins/sieve.py @@ -32,8 +32,8 @@ def sieve_suite(bot, input, func, kind, args): if args.get('adminonly', False): admins = bot.config.get('admins', []) - if input.nick.lower() not in admins and input.mask.lower() not in admins: + if input.nick not in admins and input.mask not in admins: input.notice("Sorry, you are not allowed to use this command.") return None - return input \ No newline at end of file + return input