3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

servermaps: split into two perms (servermaps.map and servermaps.localmap)

This commit is contained in:
James Lu 2018-03-02 16:14:04 -05:00
parent 6a90e99de4
commit d5d94f86e8
2 changed files with 7 additions and 2 deletions

View File

@ -99,7 +99,8 @@ Remote versions of the `manage`, `list`, `sync`, and `clear` commands also exist
- `relay.savedb` - Allows access to the `savedb` command. - `relay.savedb` - Allows access to the `savedb` command.
## Servermaps ## 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
- `stats.uptime` - Allows access to the `stats` command. - `stats.uptime` - Allows access to the `stats` command.

View File

@ -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.""" 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: try:
netname = args[0] netname = args[0]