mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
launcher: move reset_permissions() call into the permissions module
This commit is contained in:
parent
d03924ae82
commit
3b6c1e56c4
@ -83,3 +83,6 @@ def check_permissions(irc, uid, perms, also_show=[]):
|
||||
raise utils.NotAuthorizedError("You are missing one of the following permissions: %s" %
|
||||
(', '.join(perms+also_show)))
|
||||
checkPermissions = check_permissions
|
||||
|
||||
# Reset our permissions list on startup.
|
||||
reset_permissions()
|
||||
|
@ -110,5 +110,3 @@ def main():
|
||||
|
||||
world.started.set()
|
||||
log.info("Loaded plugins: %s", ', '.join(sorted(world.plugins.keys())))
|
||||
|
||||
coremods.permissions.reset_permissions() # XXX we should probably move this to run on import
|
||||
|
Loading…
Reference in New Issue
Block a user