oops, had to re-add lower
This commit is contained in:
parent
40944e6054
commit
9234f3f0ab
1 changed files with 5 additions and 6 deletions
|
@ -9,10 +9,9 @@ def ignoresieve(bot, input, func, type, args):
|
||||||
# don't block input to event hooks
|
# don't block input to event hooks
|
||||||
if type == "event":
|
if type == "event":
|
||||||
return input
|
return input
|
||||||
if input.chan in ignorelist or\
|
if input.chan.lower() in ignorelist or\
|
||||||
input.nick in ignorelist or\
|
input.nick.lower() in ignorelist or\
|
||||||
input.host in ignorelist or\
|
input.mask.lower() in ignorelist:
|
||||||
input.mask in ignorelist:
|
|
||||||
if input.command == "PRIVMSG" and input.lastparam[1:] == "unignore":
|
if input.command == "PRIVMSG" and input.lastparam[1:] == "unignore":
|
||||||
return input
|
return input
|
||||||
else:
|
else:
|
||||||
|
@ -34,7 +33,7 @@ def ignored(inp, notice=None, bot=None):
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def ignore(inp, notice=None, bot=None, config=None):
|
def ignore(inp, notice=None, bot=None, config=None):
|
||||||
".ignore <channel|nick|host> -- Makes the bot ignore <channel|nick|host>."
|
".ignore <channel|nick|host> -- Makes the bot ignore <channel|nick|host>."
|
||||||
target = inp
|
target = inp.lower()
|
||||||
ignorelist = bot.config["plugins"]["ignore"]["ignored"]
|
ignorelist = bot.config["plugins"]["ignore"]["ignored"]
|
||||||
if target in ignorelist:
|
if target in ignorelist:
|
||||||
notice("%s is already ignored." % target)
|
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):
|
def unignore(inp, notice=None, bot=None, config=None):
|
||||||
".unignore <channel|nick|host> -- Makes the bot listen to"\
|
".unignore <channel|nick|host> -- Makes the bot listen to"\
|
||||||
" <channel|nick|host>."
|
" <channel|nick|host>."
|
||||||
target = inp
|
target = inp.lower()
|
||||||
ignorelist = bot.config["plugins"]["ignore"]["ignored"]
|
ignorelist = bot.config["plugins"]["ignore"]["ignored"]
|
||||||
if target in ignorelist:
|
if target in ignorelist:
|
||||||
notice("%s has been unignored." % target)
|
notice("%s has been unignored." % target)
|
||||||
|
|
Reference in a new issue