* refactor: collapse UpdateUserProfileProperties() into existing UpdateUserProfile

* the methods were identical except that the Properties one did a check for the user profile beforehand.  However, every caller was doing this already anyway.
This commit is contained in:
Justin Clarke Casey
2008-09-15 19:02:34 +00:00
parent 6791ac3958
commit ddaa90d270
7 changed files with 27 additions and 61 deletions

View File

@@ -2254,7 +2254,7 @@ namespace OpenSim.Region.Environment.Scenes
return;
}
UserProfile.HomeRegionID = info.RegionID;
CommsManager.UserService.UpdateUserProfileProperties(UserProfile);
CommsManager.UserService.UpdateUserProfile(UserProfile);
}
else
{
@@ -2355,7 +2355,7 @@ namespace OpenSim.Region.Environment.Scenes
UserProfile.HomeRegion = RegionInfo.RegionHandle;
UserProfile.HomeLocation = position;
UserProfile.HomeLookAt = lookAt;
CommsManager.UserService.UpdateUserProfileProperties(UserProfile);
CommsManager.UserService.UpdateUserProfile(UserProfile);
remoteClient.SendAgentAlertMessage("Set home to here if supported by login service",false);
}