mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Plumb the user flags all the way through to the profile. userFlags in
the database is now intepreted as follows: low byte = user flags. Next byte, low nibble: Deternines the text (Resident, Lifetime, etc) shown. No customn text support yet.
This commit is contained in:
@@ -97,9 +97,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Profiles
|
||||
UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID);
|
||||
if (null != profile)
|
||||
{
|
||||
Byte[] charterMember = new Byte[1];
|
||||
charterMember[0] = (Byte)((profile.UserFlags & 0xf00) >> 8);
|
||||
|
||||
remoteClient.SendAvatarProperties(profile.ID, profile.AboutText,
|
||||
Util.ToDateTime(profile.Created).ToString(),
|
||||
String.Empty, profile.FirstLifeAboutText, profile.CanDoMask,
|
||||
charterMember, profile.FirstLifeAboutText, (uint)(profile.UserFlags & 0xff),
|
||||
profile.FirstLifeImage, profile.Image, String.Empty, partner);
|
||||
}
|
||||
else
|
||||
@@ -130,4 +133,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Profiles
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user