changed notice default back to user
This commit is contained in:
parent
75841ca1df
commit
9d0f9248ff
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class Input(dict):
|
||||||
"""sends an ctcp to the current channel/user or a specific channel/user"""
|
"""sends an ctcp to the current channel/user or a specific channel/user"""
|
||||||
conn.ctcp(target, ctcp_type, message)
|
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"""
|
"""sends a notice to the current channel/user or a specific channel/user"""
|
||||||
conn.cmd('NOTICE', [target, message])
|
conn.cmd('NOTICE', [target, message])
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,6 @@ def sieve_suite(bot, input, func, kind, args):
|
||||||
# loop over every permission the command allows
|
# loop over every permission the command allows
|
||||||
for permission in allowed_permissions:
|
for permission in allowed_permissions:
|
||||||
# see if the group has that permission
|
# see if the group has that permission
|
||||||
print value
|
|
||||||
if permission in value["perms"]:
|
if permission in value["perms"]:
|
||||||
# if so, add the group name to the allowed_groups list
|
# if so, add the group name to the allowed_groups list
|
||||||
allowed_groups.append(key)
|
allowed_groups.append(key)
|
||||||
|
@ -65,6 +64,7 @@ def sieve_suite(bot, input, func, kind, args):
|
||||||
if fnmatch(mask, pattern):
|
if fnmatch(mask, pattern):
|
||||||
return input
|
return input
|
||||||
|
|
||||||
|
target = input.nick
|
||||||
input.notice("Sorry, you are not allowed to use this command.")
|
input.notice("Sorry, you are not allowed to use this command.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Reference in a new issue