diff options
author | James Booth <boothj5@gmail.com> | 2016-01-20 01:48:41 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-20 01:48:41 +0000 |
commit | 5bccee93cc0c8c2426d5f5acc462dca15467cb08 (patch) | |
tree | e96737b02a68115dfb15ca588772241d7cc7de99 /src/config | |
parent | 10507b687b21a6827f0a60d6c92a778bdc91070b (diff) | |
download | profani-tty-5bccee93cc0c8c2426d5f5acc462dca15467cb08.tar.gz |
Added /roster show|hide contacts
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 4 | ||||
-rw-r--r-- | src/config/preferences.h | 1 | ||||
-rw-r--r-- | src/config/theme.c | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 15b7be45..02bf959e 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1047,6 +1047,7 @@ _get_group(preference_t pref) case PREF_ROSTER_PRIORITY: case PREF_ROSTER_WRAP: case PREF_ROSTER_RESOURCE_JOIN: + case PREF_ROSTER_CONTACTS: case PREF_ROSTER_ROOMS: case PREF_ROSTER_ROOMS_POS: case PREF_ROSTER_ROOMS_ORDER: @@ -1247,6 +1248,8 @@ _get_key(preference_t pref) return "roster.wrap"; case PREF_ROSTER_RESOURCE_JOIN: return "roster.resource.join"; + case PREF_ROSTER_CONTACTS: + return "roster.contacts"; case PREF_ROSTER_ROOMS: return "roster.rooms"; case PREF_ROSTER_ROOMS_POS: @@ -1312,6 +1315,7 @@ _get_default_boolean(preference_t pref) case PREF_ROSTER_COUNT: case PREF_ROSTER_PRIORITY: case PREF_ROSTER_RESOURCE_JOIN: + case PREF_ROSTER_CONTACTS: case PREF_ROSTER_ROOMS: case PREF_TLS_SHOW: case PREF_LASTACTIVITY: diff --git a/src/config/preferences.h b/src/config/preferences.h index a7884f16..b8b77040 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -74,6 +74,7 @@ typedef enum { PREF_ROSTER_PRIORITY, PREF_ROSTER_WRAP, PREF_ROSTER_RESOURCE_JOIN, + PREF_ROSTER_CONTACTS, PREF_ROSTER_ROOMS, PREF_ROSTER_ROOMS_POS, PREF_ROSTER_ROOMS_ORDER, diff --git a/src/config/theme.c b/src/config/theme.c index fe176ab9..3d28a129 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -320,6 +320,7 @@ _load_preferences(void) _set_string_preference("roster.unread", PREF_ROSTER_UNREAD); _set_boolean_preference("roster.count", PREF_ROSTER_COUNT); _set_boolean_preference("roster.priority", PREF_ROSTER_PRIORITY); + _set_boolean_preference("roster.contacts", PREF_ROSTER_CONTACTS); _set_boolean_preference("roster.rooms", PREF_ROSTER_ROOMS); _set_string_preference("roster.rooms.order", PREF_ROSTER_ROOMS_ORDER); _set_string_preference("roster.rooms.unread", PREF_ROSTER_ROOMS_UNREAD); |