Add none option for /who

Fixes https://github.com/profanity-im/profanity/issues/1425
`/who none` now displays all users in an muc without an affiliation
This commit is contained in:
MarcoPolo-PasTonMolo
2022-03-27 16:06:29 +03:00
parent 409268e2b6
commit 03f8db9658
4 changed files with 14 additions and 3 deletions

View File

@@ -1049,7 +1049,7 @@ static struct cmd_t command_defs[] = {
"/who",
"/who online|offline|away|dnd|xa|chat|available|unavailable|any [<group>]",
"/who moderator|participant|visitor",
"/who owner|admin|member")
"/who owner|admin|member|none")
CMD_DESC(
"Show contacts or room occupants with chosen status, role or affiliation.")
CMD_ARGS(
@@ -1060,7 +1060,7 @@ static struct cmd_t command_defs[] = {
{ "any", "Contacts with any status (same as calling with no argument)." },
{ "<group>", "Filter the results by the specified roster group, not applicable in chat rooms." },
{ "moderator|participant|visitor", "Room occupants with the specified role." },
{ "owner|admin|member", "Room occupants with the specified affiliation." })
{ "owner|admin|member|none", "Room occupants with the specified affiliation." })
CMD_EXAMPLES(
"/who",
"/who xa",