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-04-18 20:53:02 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-04-18 20:53:02 +0200
commit0c248a0b16e9c159b274667c7149f50299328804 (patch)
tree08a7db8e9aa5f14546c9ba1e203b1c8ed3ba0b68 /src/ui/console.c
parent7e4e9e668853d8cc404ace0c160376d113069c32 (diff)
downloadprofani-tty-0c248a0b16e9c159b274667c7149f50299328804.tar.gz
Add /occupants indent command
Roster has a `/roster contact indent` option.
Now we have the same for occupants. So contacts in roster and in MUC can
have configurable indentation.

Regards https://github.com/boothj5/profanity/issues/690
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index f4ba7eba..393caff1 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1232,6 +1232,9 @@ cons_occupants_setting(void)
     else
         cons_show("Occupant jids (/occupants)          : hide");
 
+    gint occupant_indent = prefs_get_occupants_indent();
+    cons_show("Occupant indent (/occupants)        : %d", occupant_indent);
+
     int size = prefs_get_occupants_size();
     cons_show("Occupants size (/occupants)         : %d", size);
 }