about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-12-19 19:14:59 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-12-19 19:14:59 +0100
commit808850c6f5c85b0e173e922b9979ca3a09b4dc31 (patch)
treeef37d004827224fe8662b3b850d21888a950a230 /src/ui/console.c
parent6d82020a66505e9c58b26091684e5f78ac71d210 (diff)
downloadprofani-tty-808850c6f5c85b0e173e922b9979ca3a09b4dc31.tar.gz
Add /occupants color command
`/occupants color on|off` to enable or disable XEP-0392 also for the
MUC occupants.

Regards
https://github.com/profanity-im/profanity/issues/1191
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 6beb3025..d3e99570 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1991,9 +1991,15 @@ cons_color_setting(void)
     prefs_free_string(color_pref);
 
     if (prefs_get_boolean(PREF_ROSTER_COLOR_NICK)) {
-        cons_show("Consistent color generation in roster (/roster)               : ON");
+        cons_show("Consistent color generation in roster (/roster)              : ON");
     } else {
-        cons_show("Consistent color generation in roster (/roster)               : OFF");
+        cons_show("Consistent color generation in roster (/roster)              : OFF");
+    }
+
+    if (prefs_get_boolean(PREF_OCCUPANTS_COLOR_NICK)) {
+        cons_show("Consistent color generation for occupants (/occupants)       : ON");
+    } else {
+        cons_show("Consistent color generation for occupants (/occupants)       : OFF");
     }
 }