From 70c41b3038f3aae97665d67ff6ccfa899428e363 Mon Sep 17 00:00:00 2001 From: neersighted Date: Sun, 1 Apr 2012 20:54:49 -0700 Subject: [PATCH] Made .ignored use notice(), you can now ignore via hostmask (*!*@*) --- plugins/ignore.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/ignore.py b/plugins/ignore.py index 795d515..194fe0a 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) 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": return input else: @@ -39,12 +39,13 @@ def ignoresieve(bot, input, func, type, args): @hook.command(autohelp=False) -def ignored(inp, bot=None): +def ignored(inp, notice=None, bot=None): ".ignored -- Lists ignored channels/users/hosts." if ignorelist: - return "Ignored channels/users/hosts are: %s" % ", ".join(ignorelist) + notice("Ignored channels/users/hosts are: %s" % ", ".join(ignorelist)) else: - return "No channels/users/hosts are currently ignored." + notice("No channels/users/hosts are currently ignored.") + return @hook.command(adminonly=True)