changed notice default back to user

This commit is contained in:
Luke Rogers 2013-10-02 16:40:11 +13:00
parent 75841ca1df
commit 9d0f9248ff
2 changed files with 2 additions and 2 deletions

View file

@ -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])

View file

@ -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