diff options
author | James Booth <boothj5@gmail.com> | 2015-11-18 02:02:49 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-18 02:02:49 +0000 |
commit | 4505102fa83e00c70d1ee15967b977957dcf3aa5 (patch) | |
tree | 9f8556fc7e9bd8c0abec75a6cca3f00c283c32de /src/config | |
parent | edbd2d5843fe7cefd730899aace631416715bb8f (diff) | |
download | profani-tty-4505102fa83e00c70d1ee15967b977957dcf3aa5.tar.gz |
Added roster count option
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 4 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 163df444..46cd3169 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -602,6 +602,7 @@ _get_group(preference_t pref) case PREF_ROSTER_EMPTY: case PREF_ROSTER_BY: case PREF_ROSTER_ORDER: + case PREF_ROSTER_COUNT: case PREF_RESOURCE_TITLE: case PREF_RESOURCE_MESSAGE: case PREF_ENC_WARN: @@ -781,6 +782,8 @@ _get_key(preference_t pref) return "roster.by"; case PREF_ROSTER_ORDER: return "roster.order"; + case PREF_ROSTER_COUNT: + return "roster.count"; case PREF_RESOURCE_TITLE: return "resource.title"; case PREF_RESOURCE_MESSAGE: @@ -835,6 +838,7 @@ _get_default_boolean(preference_t pref) case PREF_ROSTER_PRESENCE: case PREF_ROSTER_STATUS: case PREF_ROSTER_EMPTY: + case PREF_ROSTER_COUNT: case PREF_TLS_SHOW: case PREF_LASTACTIVITY: return TRUE; diff --git a/src/config/preferences.h b/src/config/preferences.h index 55b46b07..dcc0f441 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -69,6 +69,7 @@ typedef enum { PREF_ROSTER_EMPTY, PREF_ROSTER_BY, PREF_ROSTER_ORDER, + PREF_ROSTER_COUNT, PREF_MUC_PRIVILEGES, PREF_PRESENCE, PREF_WRAP, |