diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-12-19 19:14:59 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-12-19 19:14:59 +0100 |
commit | 808850c6f5c85b0e173e922b9979ca3a09b4dc31 (patch) | |
tree | ef37d004827224fe8662b3b850d21888a950a230 /src/ui/console.c | |
parent | 6d82020a66505e9c58b26091684e5f78ac71d210 (diff) | |
download | profani-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.c | 10 |
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"); } } |