Added /roster show|hide command, only show roster on connect success

This commit is contained in:
James Booth
2014-11-10 23:23:02 +00:00
parent 5d59d17642
commit 497b07c1c3
9 changed files with 77 additions and 4 deletions

View File

@@ -453,6 +453,10 @@ _get_group(preference_t pref)
case PREF_MUC_PRIVILEGES:
case PREF_PRESENCE:
case PREF_WRAP:
case PREF_ROSTER:
case PREF_ROSTER_OFFLINE:
case PREF_ROSTER_RESOURCE:
case PREF_ROSTER_BY:
return PREF_GROUP_UI;
case PREF_STATES:
case PREF_OUTTYPE:
@@ -573,6 +577,14 @@ _get_key(preference_t pref)
return "presence";
case PREF_WRAP:
return "wrap";
case PREF_ROSTER:
return "roster";
case PREF_ROSTER_OFFLINE:
return "roster.offline";
case PREF_ROSTER_RESOURCE:
return "roster.resource";
case PREF_ROSTER_BY:
return "roster.by";
default:
return NULL;
}
@@ -618,6 +630,8 @@ _get_default_string(preference_t pref)
case PREF_STATUSES_CHAT:
case PREF_STATUSES_MUC:
return "all";
case PREF_ROSTER_BY:
return "none";
default:
return NULL;
}

View File

@@ -58,6 +58,10 @@ typedef enum {
PREF_HISTORY,
PREF_MOUSE,
PREF_OCCUPANTS,
PREF_ROSTER,
PREF_ROSTER_OFFLINE,
PREF_ROSTER_RESOURCE,
PREF_ROSTER_BY,
PREF_MUC_PRIVILEGES,
PREF_PRESENCE,
PREF_WRAP,