about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-27 23:02:28 +0000
committerJames Booth <boothj5@gmail.com>2016-01-27 23:02:28 +0000
commitd4f1384b85b42dcb483d154a4fc170956d67801a (patch)
treec4125b5b6d455adffc6ba79f93f514a5cce56833 /src/ui
parentdbc52de0433de7ec441896832b2ec35fc4fb2fc4 (diff)
downloadprofani-tty-d4f1384b85b42dcb483d154a4fc170956d67801a.tar.gz
Store /roster count setting
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index a5a9800d..f2c1f35b 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1370,11 +1370,6 @@ cons_roster_setting(void)
     else
         cons_show("Roster empty (/roster)           : hide");
 
-    if (prefs_get_boolean(PREF_ROSTER_COUNT))
-        cons_show("Roster count (/roster)           : show");
-    else
-        cons_show("Roster count (/roster)           : hide");
-
     if (prefs_get_boolean(PREF_ROSTER_PRIORITY))
         cons_show("Roster priority (/roster)        : show");
     else
@@ -1385,6 +1380,19 @@ cons_roster_setting(void)
     else
         cons_show("Roster contacts (/roster)        : hide");
 
+    char *count = prefs_get_string(PREF_ROSTER_COUNT);
+    if (g_strcmp0(count, "off") == 0) {
+        cons_show("Roster count (/roster)           : OFF");
+    } else {
+        cons_show("Roster count (/roster)           : %s", count);
+    }
+    prefs_free_string(count);
+
+    if (prefs_get_boolean(PREF_ROSTER_COUNT_ZERO))
+        cons_show("Roster count zero (/roster)      : ON");
+    else
+        cons_show("Roster count zero (/roster)      : OFF");
+
     char *by = prefs_get_string(PREF_ROSTER_BY);
     cons_show("Roster by (/roster)              : %s", by);
     prefs_free_string(by);