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