Python 3 Start
This commit is contained in:
parent
9f029c8ceb
commit
141fe8d80c
67 changed files with 264 additions and 274 deletions
|
@ -27,7 +27,7 @@ def sieve_suite(bot, input, func, kind, args):
|
|||
if _bucket.consume(MESSAGE_COST):
|
||||
return input
|
||||
else:
|
||||
print "pong!"
|
||||
print("pong!")
|
||||
return None
|
||||
|
||||
|
||||
|
@ -39,11 +39,11 @@ def sieve_suite(bot, input, func, kind, args):
|
|||
acl = conn.config.get('acls', {}).get(func.__name__)
|
||||
if acl:
|
||||
if 'deny-except' in acl:
|
||||
allowed_channels = map(unicode.lower, acl['deny-except'])
|
||||
allowed_channels = list(map(str.lower, acl['deny-except']))
|
||||
if input.chan.lower() not in allowed_channels:
|
||||
return None
|
||||
if 'allow-except' in acl:
|
||||
denied_channels = map(unicode.lower, acl['allow-except'])
|
||||
denied_channels = list(map(str.lower, acl['allow-except']))
|
||||
if input.chan.lower() in denied_channels:
|
||||
return None
|
||||
|
||||
|
|
Reference in a new issue