mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-16 21:40:46 +01:00
doc/Admin: cap group
can now accept more than one capability
This commit is contained in:
parent
4d082175de
commit
80842726bb
@ -203,7 +203,7 @@ see what capabilities a user has.
|
|||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
cap list [capability] |
|
cap list [capability] |
|
||||||
cap group <existing or new capability group> <existing capability> |
|
cap group <existing or new capability group> <existing capabilities...> |
|
||||||
cap ungroup <existing capability group> <grouped capability> |
|
cap ungroup <existing capability group> <grouped capability> |
|
||||||
cap userhas <user> [capability] |
|
cap userhas <user> [capability] |
|
||||||
cap whohas <capability>
|
cap whohas <capability>
|
||||||
@ -250,15 +250,12 @@ Observe.
|
|||||||
To create a new capability group or to add capabilities to an existing group,
|
To create a new capability group or to add capabilities to an existing group,
|
||||||
use the `cap group` command.
|
use the `cap group` command.
|
||||||
|
|
||||||
Usage: `cap group <existing or new capability group> <existing capability>`
|
Usage: `cap group <existing or new capability group> <existing capabilities...>`
|
||||||
|
|
||||||
For example, to create a new capability group called `moderator` who can strictly
|
For example, to create a new capability group called `moderator` who can strictly
|
||||||
only set `mode +m` or `mode -m` and use the `voice` and `devoice` commands:
|
only set `mode +m` or `mode -m` and use the `voice` and `devoice` commands:
|
||||||
|
|
||||||
<pragma-> cap group moderator can-voice
|
<pragma-> cap group moderator can-voice can-devoice can-mode can-mode-m
|
||||||
<pragma-> cap group moderator can-devoice
|
|
||||||
<pragma-> cap group moderator can-mode
|
|
||||||
<pragma-> cap group moderator can-mode-m
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<pragma-> cap list moderator
|
<pragma-> cap list moderator
|
||||||
<PBot> Grouped capabilities for moderator: can-devoice (1 cap), can-voice (1 cap),
|
<PBot> Grouped capabilities for moderator: can-devoice (1 cap), can-voice (1 cap),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user