From 22ba86ec5ae5a4fc05fd0a296dba46e0bfaa69f3 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Sat, 31 Mar 2012 12:52:51 +1300 Subject: [PATCH] You can now ignore by host --- plugins/ignore.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/ignore.py b/plugins/ignore.py index a12142a..9d3ab6a 100755 --- a/plugins/ignore.py +++ b/plugins/ignore.py @@ -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 -- Makes the bot ignore ." + ".ignore -- 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 -- Makes the bot listen to ." + ".unignore channels/users/hosts -- Makes the bot listen to someone." target = inp if is_ignored(target):