Made .ignored use notice(), you can now ignore via hostmask (*!*@*)
This commit is contained in:
parent
126ef8d319
commit
70c41b3038
1 changed files with 5 additions and 4 deletions
|
@ -30,7 +30,7 @@ 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 is_ignored(input.chan) or is_ignored(input.nick) or is_ignored(input.host):
|
if is_ignored(input.chan) or is_ignored(input.nick) or is_ignored(input.host) or is_ignored(input.mask):
|
||||||
if input.command == "PRIVMSG" and input.lastparam[1:] == "unignore":
|
if input.command == "PRIVMSG" and input.lastparam[1:] == "unignore":
|
||||||
return input
|
return input
|
||||||
else:
|
else:
|
||||||
|
@ -39,12 +39,13 @@ def ignoresieve(bot, input, func, type, args):
|
||||||
|
|
||||||
|
|
||||||
@hook.command(autohelp=False)
|
@hook.command(autohelp=False)
|
||||||
def ignored(inp, bot=None):
|
def ignored(inp, notice=None, bot=None):
|
||||||
".ignored -- Lists ignored channels/users/hosts."
|
".ignored -- Lists ignored channels/users/hosts."
|
||||||
if ignorelist:
|
if ignorelist:
|
||||||
return "Ignored channels/users/hosts are: %s" % ", ".join(ignorelist)
|
notice("Ignored channels/users/hosts are: %s" % ", ".join(ignorelist))
|
||||||
else:
|
else:
|
||||||
return "No channels/users/hosts are currently ignored."
|
notice("No channels/users/hosts are currently ignored.")
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
|
|
Reference in a new issue