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)