about summary refs log tree commit diff stats
path: root/src/config/preferences.c
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/config/preferences.c
parentdbc52de0433de7ec441896832b2ec35fc4fb2fc4 (diff)
downloadprofani-tty-d4f1384b85b42dcb483d154a4fc170956d67801a.tar.gz
Store /roster count setting
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r--src/config/preferences.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index bb85c682..8a15cccd 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1112,6 +1112,7 @@ _get_group(preference_t pref)
         case PREF_ROSTER_ORDER:
         case PREF_ROSTER_UNREAD:
         case PREF_ROSTER_COUNT:
+        case PREF_ROSTER_COUNT_ZERO:
         case PREF_ROSTER_PRIORITY:
         case PREF_ROSTER_WRAP:
         case PREF_ROSTER_RESOURCE_JOIN:
@@ -1311,6 +1312,8 @@ _get_key(preference_t pref)
             return "roster.unread";
         case PREF_ROSTER_COUNT:
             return "roster.count";
+        case PREF_ROSTER_COUNT_ZERO:
+            return "roster.count.zero";
         case PREF_ROSTER_PRIORITY:
             return "roster.priority";
         case PREF_ROSTER_WRAP:
@@ -1383,7 +1386,7 @@ _get_default_boolean(preference_t pref)
         case PREF_ROSTER:
         case PREF_ROSTER_OFFLINE:
         case PREF_ROSTER_EMPTY:
-        case PREF_ROSTER_COUNT:
+        case PREF_ROSTER_COUNT_ZERO:
         case PREF_ROSTER_PRIORITY:
         case PREF_ROSTER_RESOURCE_JOIN:
         case PREF_ROSTER_CONTACTS:
@@ -1415,6 +1418,8 @@ _get_default_string(preference_t pref)
             return "all";
         case PREF_ROSTER_BY:
             return "presence";
+        case PREF_ROSTER_COUNT:
+            return "unread";
         case PREF_ROSTER_ORDER:
             return "presence";
         case PREF_ROSTER_UNREAD: