affiliation: fix usage string and add documentation

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent fa65b1b6
......@@ -336,11 +336,12 @@ MultiUserChat tab commands
:sorted:
/affiliation
**Usage:** ``/affiliation <nick> <affiliation>``
**Usage:** ``/affiliation [<nick or jid> <affiliation>]``
Sets the affiliation of the participant designated by **nick** to the
given **affiliation** (can be one of owner, admin, member, outcast
and none).
Sets the affiliation of the participant designated by **nick** or
**jid** to the given **affiliation** (can be one of owner, admin,
member, outcast and none). If not argument is provided, lists
room affiliations.
/role
**Usage:** ``/affiliation <nick> <role>``
......
......@@ -1601,7 +1601,7 @@ class MucTab(ChatTab):
@command_args_parser.quoted(0, 2)
def command_affiliation(self, args) -> None:
"""
/affiliation [<nick or jid> [<affiliation>]]
/affiliation [<nick or jid> <affiliation>]
Changes the affiliation of a user
affiliations can be: outcast, none, member, admin, owner
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment