about summary refs log tree commit diff stats
path: root/src/ui/mucwin.c
diff options
context:
space:
mode:
authorMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-03-27 16:06:29 +0300
committerMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-03-27 16:06:29 +0300
commit03f8db965895bbb36a1fb5b7b5aa52430e7ac03b (patch)
tree8ce01f837e5c349aff91e9f927642c67d2101fb7 /src/ui/mucwin.c
parent409268e2b6644b583a0e0c42648bb16d0cf6b3eb (diff)
downloadprofani-tty-03f8db965895bbb36a1fb5b7b5aa52430e7ac03b.tar.gz
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
Diffstat (limited to 'src/ui/mucwin.c')
-rw-r--r--src/ui/mucwin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index c5aed583..04fd7893 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -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;
         }