From 9234f3f0ab971841bf6970886ea5ea7189fd4e18 Mon Sep 17 00:00:00 2001 From: neersighted Date: Mon, 2 Apr 2012 17:09:30 -0700 Subject: [PATCH] oops, had to re-add lower --- plugins/ignore.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/ignore.py b/plugins/ignore.py index 3e464bf..146f691 100755 --- a/plugins/ignore.py +++ b/plugins/ignore.py @@ -9,10 +9,9 @@ def ignoresieve(bot, input, func, type, args): # don't block input to event hooks if type == "event": return input - if input.chan in ignorelist or\ - input.nick in ignorelist or\ - input.host in ignorelist or\ - input.mask in ignorelist: + if input.chan.lower() in ignorelist or\ + input.nick.lower() in ignorelist or\ + input.mask.lower() in ignorelist: if input.command == "PRIVMSG" and input.lastparam[1:] == "unignore": return input else: @@ -34,7 +33,7 @@ def ignored(inp, notice=None, bot=None): @hook.command(adminonly=True) def ignore(inp, notice=None, bot=None, config=None): ".ignore -- Makes the bot ignore ." - target = inp + target = inp.lower() ignorelist = bot.config["plugins"]["ignore"]["ignored"] if target in ignorelist: notice("%s is already ignored." % target) @@ -50,7 +49,7 @@ def ignore(inp, notice=None, bot=None, config=None): def unignore(inp, notice=None, bot=None, config=None): ".unignore -- Makes the bot listen to"\ " ." - target = inp + target = inp.lower() ignorelist = bot.config["plugins"]["ignore"]["ignored"] if target in ignorelist: notice("%s has been unignored." % target)