mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 04:36:21 +00:00
Added /roster show|hide contacts
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user