From 880f024c6814b70cd97bfeeb8530df73f233c241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 7 May 2020 23:11:35 +0200 Subject: affiliation: fix usage string and add documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- doc/source/commands.rst | 9 +++++---- poezio/tabs/muctab.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/source/commands.rst b/doc/source/commands.rst index ba0d2866..dab2eceb 100644 --- a/doc/source/commands.rst +++ b/doc/source/commands.rst @@ -336,11 +336,12 @@ MultiUserChat tab commands :sorted: /affiliation - **Usage:** ``/affiliation `` + **Usage:** ``/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 `` diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 9543e4c4..73359610 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1601,7 +1601,7 @@ class MucTab(ChatTab): @command_args_parser.quoted(0, 2) def command_affiliation(self, args) -> None: """ - /affiliation [ []] + /affiliation [ ] Changes the affiliation of a user affiliations can be: outcast, none, member, admin, owner """ -- cgit v1.2.3