diff options
author | Melanie Thielker | 2008-08-15 22:49:26 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-08-15 22:49:26 +0000 |
commit | 04488d9d3819fd16502a095771d1513af02b7a93 (patch) | |
tree | 03e4673e0be665d07b45a456e8df2f11a0778bf2 /OpenSim/Region | |
parent | Pantis #1957 (diff) | |
download | opensim-SC_OLD-04488d9d3819fd16502a095771d1513af02b7a93.zip opensim-SC_OLD-04488d9d3819fd16502a095771d1513af02b7a93.tar.gz opensim-SC_OLD-04488d9d3819fd16502a095771d1513af02b7a93.tar.bz2 opensim-SC_OLD-04488d9d3819fd16502a095771d1513af02b7a93.tar.xz |
Plumb in the partner and the account title fields for profile info.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs | 15 |
2 files changed, 25 insertions, 4 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 01b1933..3d42dfd 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |||
@@ -92,6 +92,18 @@ namespace OpenSim.Region.Communications.OGS1 | |||
92 | if (data.Contains("god_level")) | 92 | if (data.Contains("god_level")) |
93 | userData.GodLevel = Convert.ToInt32((string) data["god_level"]); | 93 | userData.GodLevel = Convert.ToInt32((string) data["god_level"]); |
94 | 94 | ||
95 | if (data.Contains("custom_type")) | ||
96 | userData.CustomType = (string) data["custom_type"]; | ||
97 | else | ||
98 | userData.CustomType = ""; | ||
99 | if(userData.CustomType == null) | ||
100 | userData.CustomType = ""; | ||
101 | |||
102 | if (data.Contains("partner")) | ||
103 | userData.Partner = new LLUUID((string) data["partner"]); | ||
104 | else | ||
105 | userData.Partner = LLUUID.Zero; | ||
106 | |||
95 | return userData; | 107 | return userData; |
96 | } | 108 | } |
97 | 109 | ||
@@ -471,6 +483,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
471 | param["home_look_z"] = UserProfile.HomeLookAtZ.ToString(); | 483 | param["home_look_z"] = UserProfile.HomeLookAtZ.ToString(); |
472 | param["user_flags"] = UserProfile.UserFlags.ToString(); | 484 | param["user_flags"] = UserProfile.UserFlags.ToString(); |
473 | param["god_level"] = UserProfile.GodLevel.ToString(); | 485 | param["god_level"] = UserProfile.GodLevel.ToString(); |
486 | param["custom_type"] = UserProfile.CustomType.ToString(); | ||
487 | param["partner"] = UserProfile.Partner.ToString(); | ||
474 | 488 | ||
475 | IList parameters = new ArrayList(); | 489 | IList parameters = new ArrayList(); |
476 | parameters.Add(param); | 490 | parameters.Add(param); |
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 | |||
93 | public void RequestAvatarProperty(IClientAPI remoteClient, LLUUID avatarID) | 93 | public void RequestAvatarProperty(IClientAPI remoteClient, LLUUID avatarID) |
94 | { | 94 | { |
95 | // FIXME: finish adding fields such as url, masking, etc. | 95 | // FIXME: finish adding fields such as url, masking, etc. |
96 | LLUUID partner = new LLUUID("11111111-1111-0000-0000-000100bba000"); | ||
97 | UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID); | 96 | UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID); |
98 | if (null != profile) | 97 | if (null != profile) |
99 | { | 98 | { |
100 | Byte[] charterMember = new Byte[1]; | 99 | Byte[] charterMember; |
101 | charterMember[0] = (Byte)((profile.UserFlags & 0xf00) >> 8); | 100 | if(profile.CustomType == "") |
101 | { | ||
102 | charterMember = new Byte[1]; | ||
103 | charterMember[0] = (Byte)((profile.UserFlags & 0xf00) >> 8); | ||
104 | } | ||
105 | else | ||
106 | { | ||
107 | charterMember = Helpers.StringToField(profile.CustomType); | ||
108 | } | ||
102 | 109 | ||
103 | remoteClient.SendAvatarProperties(profile.ID, profile.AboutText, | 110 | remoteClient.SendAvatarProperties(profile.ID, profile.AboutText, |
104 | Util.ToDateTime(profile.Created).ToString(), | 111 | Util.ToDateTime(profile.Created).ToString(), |
105 | charterMember, profile.FirstLifeAboutText, (uint)(profile.UserFlags & 0xff), | 112 | charterMember, profile.FirstLifeAboutText, (uint)(profile.UserFlags & 0xff), |
106 | profile.FirstLifeImage, profile.Image, String.Empty, partner); | 113 | profile.FirstLifeImage, profile.Image, String.Empty, profile.Partner); |
107 | } | 114 | } |
108 | else | 115 | else |
109 | { | 116 | { |