You can now ignore by host
This commit is contained in:
parent
a69e7fa510
commit
22ba86ec5a
1 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ def ignoresieve(bot, input, func, type, args):
|
|||
# don't block input to event hooks
|
||||
if type == "event":
|
||||
return input
|
||||
if is_ignored(input.chan) or is_ignored(input.nick):
|
||||
if is_ignored(input.chan) or is_ignored(input.nick) or is_ignored(input.host):
|
||||
if input.command == "PRIVMSG" and input.lastparam[1:] == "unignore":
|
||||
return input
|
||||
else:
|
||||
|
@ -40,16 +40,16 @@ def ignoresieve(bot, input, func, type, args):
|
|||
|
||||
@hook.command(autohelp=False)
|
||||
def ignored(inp, bot=None):
|
||||
".ignored -- Lists ignored channels/users."
|
||||
".ignored -- Lists ignored channels/users/hosts."
|
||||
if ignorelist:
|
||||
return "Ignored channels/users are: %s" % ", ".join(ignorelist)
|
||||
return "Ignored channels/users/hosts are: %s" % ", ".join(ignorelist)
|
||||
else:
|
||||
return "No channels/users are currently ignored."
|
||||
return "No channels/users/hosts are currently ignored."
|
||||
|
||||
|
||||
@hook.command(adminonly=True)
|
||||
def ignore(inp, input=None, notice=None):
|
||||
".ignore <channel/user> -- Makes the bot ignore <channel/user>."
|
||||
".ignore <channels/users/hosts> -- Makes the bot ignore someone."
|
||||
target = inp
|
||||
|
||||
if is_ignored(target):
|
||||
|
@ -61,7 +61,7 @@ def ignore(inp, input=None, notice=None):
|
|||
|
||||
@hook.command(adminonly=True)
|
||||
def unignore(inp, input=None, notice=None):
|
||||
".unignore <channel/user> -- Makes the bot listen to <channel/user>."
|
||||
".unignore channels/users/hosts -- Makes the bot listen to someone."
|
||||
target = inp
|
||||
|
||||
if is_ignored(target):
|
||||
|
|
Reference in a new issue