From 04488d9d3819fd16502a095771d1513af02b7a93 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 15 Aug 2008 22:49:26 +0000 Subject: Plumb in the partner and the account title fields for profile info. --- .../Modules/Avatar/Profiles/AvatarProfilesModule.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Avatar') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs index 881889f..1d1d503 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs @@ -93,17 +93,24 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Profiles public void RequestAvatarProperty(IClientAPI remoteClient, LLUUID avatarID) { // FIXME: finish adding fields such as url, masking, etc. - LLUUID partner = new LLUUID("11111111-1111-0000-0000-000100bba000"); UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID); if (null != profile) { - Byte[] charterMember = new Byte[1]; - charterMember[0] = (Byte)((profile.UserFlags & 0xf00) >> 8); + Byte[] charterMember; + if(profile.CustomType == "") + { + charterMember = new Byte[1]; + charterMember[0] = (Byte)((profile.UserFlags & 0xf00) >> 8); + } + else + { + charterMember = Helpers.StringToField(profile.CustomType); + } remoteClient.SendAvatarProperties(profile.ID, profile.AboutText, Util.ToDateTime(profile.Created).ToString(), charterMember, profile.FirstLifeAboutText, (uint)(profile.UserFlags & 0xff), - profile.FirstLifeImage, profile.Image, String.Empty, partner); + profile.FirstLifeImage, profile.Image, String.Empty, profile.Partner); } else { -- cgit v1.1