mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-12 13:19:49 +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.
|
- `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.
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user