aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
authorSean Dague2008-04-10 13:53:06 +0000
committerSean Dague2008-04-10 13:53:06 +0000
commitc176caeb05c2264654b764e4d010561da60c24fc (patch)
tree87e0cab128ecaac57c5995df4cf5048185fe383f /OpenSim/Region/Environment/Modules
parent* Brings back map tile generation based on the terrain. The algorithm produc... (diff)
downloadopensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.zip
opensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.tar.gz
opensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.tar.bz2
opensim-SC-c176caeb05c2264654b764e4d010561da60c24fc.tar.xz
moved fields to properties for UserDataProfile, which was
actually a little more work than I expected given the copious use of out params.
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs22
-rw-r--r--OpenSim/Region/Environment/Modules/VoiceModule.cs2
2 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs
index 0ead5f7..699e68d 100644
--- a/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs
+++ b/OpenSim/Region/Environment/Modules/AvatarProfilesModule.cs
@@ -90,10 +90,10 @@ namespace OpenSim.Region.Environment.Modules
90 UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID); 90 UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID);
91 if (null != profile) 91 if (null != profile)
92 { 92 {
93 remoteClient.SendAvatarProperties(profile.UUID, profile.profileAboutText, 93 remoteClient.SendAvatarProperties(profile.Id, profile.ProfileAboutText,
94 Util.ToDateTime(profile.created).ToString(), 94 Util.ToDateTime(profile.Created).ToString(),
95 System.String.Empty, profile.profileFirstText, profile.profileCanDoMask, 95 System.String.Empty, profile.ProfileFirstText, profile.ProfileCanDoMask,
96 profile.profileFirstImage, profile.profileImage, System.String.Empty, partner); 96 profile.ProfileFirstImage, profile.ProfileImage, System.String.Empty, partner);
97 } 97 }
98 else 98 else
99 { 99 {
@@ -103,15 +103,15 @@ namespace OpenSim.Region.Environment.Modules
103 103
104 public void UpdateAvatarProperties(IClientAPI remoteClient, UserProfileData newProfile) 104 public void UpdateAvatarProperties(IClientAPI remoteClient, UserProfileData newProfile)
105 { 105 {
106 UserProfileData Profile = m_scene.CommsManager.UserService.GetUserProfile(newProfile.UUID); 106 UserProfileData Profile = m_scene.CommsManager.UserService.GetUserProfile(newProfile.Id);
107 107
108 // if it's the profile of the user requesting the update, then we change only a few things. 108 // if it's the profile of the user requesting the update, then we change only a few things.
109 if (remoteClient.AgentId.CompareTo(Profile.UUID) == 0) 109 if (remoteClient.AgentId.CompareTo(Profile.Id) == 0)
110 { 110 {
111 Profile.profileImage = newProfile.profileImage; 111 Profile.ProfileImage = newProfile.ProfileImage;
112 Profile.profileFirstImage = newProfile.profileFirstImage; 112 Profile.ProfileFirstImage = newProfile.ProfileFirstImage;
113 Profile.profileAboutText = newProfile.profileAboutText; 113 Profile.ProfileAboutText = newProfile.ProfileAboutText;
114 Profile.profileFirstText = newProfile.profileFirstText; 114 Profile.ProfileFirstText = newProfile.ProfileFirstText;
115 } 115 }
116 else 116 else
117 { 117 {
@@ -119,7 +119,7 @@ namespace OpenSim.Region.Environment.Modules
119 } 119 }
120 if (m_scene.CommsManager.UserService.UpdateUserProfileProperties(Profile)) 120 if (m_scene.CommsManager.UserService.UpdateUserProfileProperties(Profile))
121 { 121 {
122 RequestAvatarProperty(remoteClient, newProfile.UUID); 122 RequestAvatarProperty(remoteClient, newProfile.Id);
123 } 123 }
124 } 124 }
125 } 125 }
diff --git a/OpenSim/Region/Environment/Modules/VoiceModule.cs b/OpenSim/Region/Environment/Modules/VoiceModule.cs
index b254507..8ca4698 100644
--- a/OpenSim/Region/Environment/Modules/VoiceModule.cs
+++ b/OpenSim/Region/Environment/Modules/VoiceModule.cs
@@ -180,7 +180,7 @@ namespace OpenSim.Region.Environment.Modules
180 if (null == userInfo) throw new Exception("cannot get user details"); 180 if (null == userInfo) throw new Exception("cannot get user details");
181 181
182 LLSDVoiceAccountResponse voiceAccountResponse = 182 LLSDVoiceAccountResponse voiceAccountResponse =
183 new LLSDVoiceAccountResponse(voiceUser, "$1$" + userInfo.UserProfile.passwordHash); 183 new LLSDVoiceAccountResponse(voiceUser, "$1$" + userInfo.UserProfile.PasswordHash);
184 string r = LLSDHelpers.SerialiseLLSDReply(voiceAccountResponse); 184 string r = LLSDHelpers.SerialiseLLSDReply(voiceAccountResponse);
185 m_log.DebugFormat("[CAPS][PROVISIONVOICE]: {0}", r); 185 m_log.DebugFormat("[CAPS][PROVISIONVOICE]: {0}", r);
186 return r; 186 return r;