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

@@ -723,6 +723,9 @@ mucwin_show_affiliation_list(ProfMucWin* mucwin, muc_affiliation_t affiliation)
case MUC_AFFILIATION_OUTCAST:
win_println(window, THEME_DEFAULT, "!", "No outcasts found.");
break;
case MUC_AFFILIATION_NONE:
win_println(window, THEME_DEFAULT, "!", "No nones found.");
break;
default:
break;
}
@@ -741,6 +744,9 @@ mucwin_show_affiliation_list(ProfMucWin* mucwin, muc_affiliation_t affiliation)
case MUC_AFFILIATION_OUTCAST:
win_println(window, THEME_DEFAULT, "!", "Outcasts:");
break;
case MUC_AFFILIATION_NONE:
win_println(window, THEME_DEFAULT, "!", "Nones:");
break;
default:
break;
}