affiliation: fix usage string and add documentation

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-05-07 23:11:35 +02:00
parent fa65b1b660
commit 880f024c68
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
2 changed files with 6 additions and 5 deletions

View file

@ -336,11 +336,12 @@ MultiUserChat tab commands
:sorted: :sorted:
/affiliation /affiliation
**Usage:** ``/affiliation <nick> <affiliation>`` **Usage:** ``/affiliation [<nick or jid> <affiliation>]``
Sets the affiliation of the participant designated by **nick** to the Sets the affiliation of the participant designated by **nick** or
given **affiliation** (can be one of owner, admin, member, outcast **jid** to the given **affiliation** (can be one of owner, admin,
and none). member, outcast and none). If not argument is provided, lists
room affiliations.
/role /role
**Usage:** ``/affiliation <nick> <role>`` **Usage:** ``/affiliation <nick> <role>``

View file

@ -1601,7 +1601,7 @@ class MucTab(ChatTab):
@command_args_parser.quoted(0, 2) @command_args_parser.quoted(0, 2)
def command_affiliation(self, args) -> None: def command_affiliation(self, args) -> None:
""" """
/affiliation [<nick or jid> [<affiliation>]] /affiliation [<nick or jid> <affiliation>]
Changes the affiliation of a user Changes the affiliation of a user
affiliations can be: outcast, none, member, admin, owner affiliations can be: outcast, none, member, admin, owner
""" """