Removed debug code
This commit is contained in:
parent
e281bbd62b
commit
e574a0d41e
1 changed files with 0 additions and 5 deletions
|
@ -48,12 +48,9 @@ def sieve_suite(bot, input, func, kind, args):
|
|||
# see if the group has that permission
|
||||
print value
|
||||
if permission in value["perms"]:
|
||||
print "%s in %s" % (permission, value["perms"])
|
||||
# if so, add the group name to the allowed_groups list
|
||||
allowed_groups.append(key)
|
||||
|
||||
print allowed_groups
|
||||
|
||||
if not allowed_groups:
|
||||
print "Something is wrong. A hook requires {} but" \
|
||||
" there are no groups with that permission!".format(str(allowed_permissions))
|
||||
|
@ -61,9 +58,7 @@ def sieve_suite(bot, input, func, kind, args):
|
|||
mask = input.mask.lower()
|
||||
|
||||
for group in allowed_groups:
|
||||
print group
|
||||
group_users = bot.config.get("permissions", {}).get(group, [])["users"]
|
||||
print group_users
|
||||
group_users = [_mask.lower() for _mask in group_users]
|
||||
for pattern in group_users:
|
||||
print mask + pattern
|
||||
|
|
Reference in a new issue