mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-03 16:39:25 +01:00
servermaps: split into two perms (servermaps.map and servermaps.localmap)
This commit is contained in:
parent
6a90e99de4
commit
d5d94f86e8
@ -99,7 +99,8 @@ Remote versions of the `manage`, `list`, `sync`, and `clear` commands also exist
|
||||
- `relay.savedb` - Allows access to the `savedb` command.
|
||||
|
||||
## Servermaps
|
||||
- `servermaps.map` - Allows access to the `map` and `localmap` commands.
|
||||
- `servermaps.localmap` - Allows access to the `localmap` command.
|
||||
- `servermaps.map` - Allows access to the `map` command.
|
||||
|
||||
## Stats
|
||||
- `stats.uptime` - Allows access to the `stats` command.
|
||||
|
@ -14,7 +14,11 @@ def _map(irc, source, args, show_relay=True):
|
||||
|
||||
Shows the network map for the given network, or the current network if not specified."""
|
||||
|
||||
permissions.check_permissions(irc, source, ['servermaps.map'])
|
||||
if show_relay:
|
||||
perm = 'servermaps.map'
|
||||
else:
|
||||
perm = 'servermaps.localmap'
|
||||
permissions.check_permissions(irc, source, [perm])
|
||||
|
||||
try:
|
||||
netname = args[0]
|
||||
|
Loading…
Reference in New Issue
Block a user