From 9d0f9248ff9bc9e2a6766223755507dcbc10e7d1 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 2 Oct 2013 16:40:11 +1300 Subject: [PATCH] changed notice default back to user --- core/main.py | 2 +- plugins/core_sieve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/main.py b/core/main.py index b1649ef..6b145c6 100755 --- a/core/main.py +++ b/core/main.py @@ -34,7 +34,7 @@ class Input(dict): """sends an ctcp to the current channel/user or a specific channel/user""" conn.ctcp(target, ctcp_type, message) - def notice(message, target=chan): + def notice(message, target=user): """sends a notice to the current channel/user or a specific channel/user""" conn.cmd('NOTICE', [target, message]) diff --git a/plugins/core_sieve.py b/plugins/core_sieve.py index 4dc623b..aeb04ab 100755 --- a/plugins/core_sieve.py +++ b/plugins/core_sieve.py @@ -47,7 +47,6 @@ def sieve_suite(bot, input, func, kind, args): # loop over every permission the command allows for permission in allowed_permissions: # see if the group has that permission - print value if permission in value["perms"]: # if so, add the group name to the allowed_groups list allowed_groups.append(key) @@ -65,6 +64,7 @@ def sieve_suite(bot, input, func, kind, args): if fnmatch(mask, pattern): return input + target = input.nick input.notice("Sorry, you are not allowed to use this command.") return None