Rename charterMember to membershipType to show what it actually is.

This field started out as a simple flag in the protocol to indicate a
user being a SL charter member. It has since then taken on additional
functionality that means that the name is no longer appropriate.
This commit is contained in:
Melanie Thielker
2016-12-12 11:09:38 +00:00
parent bebfbd0600
commit 1388ac2ef7
8 changed files with 18 additions and 18 deletions

View File

@@ -308,11 +308,11 @@ namespace OpenSim.Services.Connectors.SimianGrid
about = new OSDMap(0);
// Check if this user is a grid operator
byte[] charterMember;
byte[] membershipType;
if (user["AccessLevel"].AsInteger() >= 200)
charterMember = Utils.StringToBytes("Operator");
membershipType = Utils.StringToBytes("Operator");
else
charterMember = Utils.EmptyBytes;
membershipType = Utils.EmptyBytes;
// Check if the user is online
if (client.Scene is Scene)
@@ -327,7 +327,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
flags |= ProfileFlags.Identified;
client.SendAvatarProperties(avatarID, about["About"].AsString(), user["CreationDate"].AsDate().ToString("M/d/yyyy",
System.Globalization.CultureInfo.InvariantCulture), charterMember, about["FLAbout"].AsString(), (uint)flags,
System.Globalization.CultureInfo.InvariantCulture), membershipType, about["FLAbout"].AsString(), (uint)flags,
about["FLImage"].AsUUID(), about["Image"].AsUUID(), about["URL"].AsString(), user["Partner"].AsUUID());
OSDMap interests = null;