diff options
author | James Booth <boothj5@gmail.com> | 2016-01-27 23:02:28 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-27 23:02:28 +0000 |
commit | d4f1384b85b42dcb483d154a4fc170956d67801a (patch) | |
tree | c4125b5b6d455adffc6ba79f93f514a5cce56833 /src/config/preferences.c | |
parent | dbc52de0433de7ec441896832b2ec35fc4fb2fc4 (diff) | |
download | profani-tty-d4f1384b85b42dcb483d154a4fc170956d67801a.tar.gz |
Store /roster count setting
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r-- | src/config/preferences.c | 7 |
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: |