about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-24 01:04:21 +0000
committerJames Booth <boothj5@gmail.com>2016-01-24 01:04:21 +0000
commit6d8a3e2020067a9a322b27a311e83a892f79962e (patch)
tree74b39432e8257b1a5ee05352ae0ba327c17c40e2 /src/ui/console.c
parent67abfaa21e02ae17baf212d65a5e6a999929633a (diff)
downloadprofani-tty-6d8a3e2020067a9a322b27a311e83a892f79962e.tar.gz
Added /roster private command
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index d1438340..490c1a29 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1354,6 +1354,15 @@ cons_roster_setting(void)
     else
         cons_show("Roster rooms (/roster)           : hide");
 
+    char *priv = prefs_get_string(PREF_ROSTER_PRIVATE);
+    if (g_strcmp0(priv, "room") == 0) {
+        cons_show("Roster private (/roster)         : room");
+    } else if (g_strcmp0(priv, "group") == 0) {
+        cons_show("Roster private (/roster)         : group");
+    } else {
+        cons_show("Roster private (/roster)         : OFF");
+    }
+
     char *rooms_pos = prefs_get_string(PREF_ROSTER_ROOMS_POS);
     cons_show("Roster rooms position (/roster)  : %s", rooms_pos);
     prefs_free_string(rooms_pos);