diff options
author | Melanie | 2010-03-03 02:07:03 +0000 |
---|---|---|
committer | Melanie | 2010-03-03 02:07:03 +0000 |
commit | 028a87fe37002e7a0611f66babf1deee46c83804 (patch) | |
tree | 387aec499fd60c2012bed8148e6a2ddc847c3d95 /OpenSim/Region/DataSnapshot/EstateSnapshot.cs | |
parent | Revert "test" (diff) | |
parent | Fixes Region.Framework tests. Although these tests don't fail, they need to b... (diff) | |
download | opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.zip opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.gz opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.bz2 opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.xz |
Merge branch 'master' into careminster-presence-refactor
This brings careminster on the level of master. To be tested
Diffstat (limited to 'OpenSim/Region/DataSnapshot/EstateSnapshot.cs')
-rw-r--r-- | OpenSim/Region/DataSnapshot/EstateSnapshot.cs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs index 5fff89f..8da9e8c 100644 --- a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs | |||
@@ -29,9 +29,10 @@ using System; | |||
29 | using System.Xml; | 29 | using System.Xml; |
30 | using OpenMetaverse; | 30 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Communications.Cache; | 32 | |
33 | using OpenSim.Region.DataSnapshot.Interfaces; | 33 | using OpenSim.Region.DataSnapshot.Interfaces; |
34 | using OpenSim.Region.Framework.Scenes; | 34 | using OpenSim.Region.Framework.Scenes; |
35 | using OpenSim.Services.Interfaces; | ||
35 | 36 | ||
36 | namespace OpenSim.Region.DataSnapshot.Providers | 37 | namespace OpenSim.Region.DataSnapshot.Providers |
37 | { | 38 | { |
@@ -55,21 +56,17 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
55 | //Now in DataSnapshotProvider module form! | 56 | //Now in DataSnapshotProvider module form! |
56 | XmlNode estatedata = factory.CreateNode(XmlNodeType.Element, "estate", ""); | 57 | XmlNode estatedata = factory.CreateNode(XmlNodeType.Element, "estate", ""); |
57 | 58 | ||
58 | UUID ownerid = m_scene.RegionInfo.MasterAvatarAssignedUUID; | 59 | UUID ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; |
59 | if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) | ||
60 | ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
61 | |||
62 | CachedUserInfo userInfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(ownerid); | ||
63 | 60 | ||
61 | UserAccount userInfo = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, ownerid); | ||
64 | //TODO: Change to query userserver about the master avatar UUID ? | 62 | //TODO: Change to query userserver about the master avatar UUID ? |
65 | String firstname; | 63 | String firstname; |
66 | String lastname; | 64 | String lastname; |
67 | 65 | ||
68 | if (userInfo != null) | 66 | if (userInfo != null) |
69 | { | 67 | { |
70 | UserProfileData userProfile = userInfo.UserProfile; | 68 | firstname = userInfo.FirstName; |
71 | firstname = userProfile.FirstName; | 69 | lastname = userInfo.LastName; |
72 | lastname = userProfile.SurName; | ||
73 | 70 | ||
74 | //TODO: Fix the marshalling system to have less copypasta gruntwork | 71 | //TODO: Fix the marshalling system to have less copypasta gruntwork |
75 | XmlNode user = factory.CreateNode(XmlNodeType.Element, "user", ""); | 72 | XmlNode user = factory.CreateNode(XmlNodeType.Element, "user", ""); |