diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs index 72ec869..fac052a 100644 --- a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs | |||
@@ -31,9 +31,10 @@ using log4net; | |||
31 | using Nini.Config; | 31 | using Nini.Config; |
32 | using OpenMetaverse; | 32 | using OpenMetaverse; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications.Cache; | 34 | |
35 | using OpenSim.Region.Framework.Interfaces; | 35 | using OpenSim.Region.Framework.Interfaces; |
36 | using OpenSim.Region.Framework.Scenes; | 36 | using OpenSim.Region.Framework.Scenes; |
37 | using OpenSim.Services.Interfaces; | ||
37 | 38 | ||
38 | namespace OpenSim.Region.CoreModules.Avatar.Dialog | 39 | namespace OpenSim.Region.CoreModules.Avatar.Dialog |
39 | { | 40 | { |
@@ -116,12 +117,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog | |||
116 | UUID avatarID, string objectName, UUID objectID, UUID ownerID, | 117 | UUID avatarID, string objectName, UUID objectID, UUID ownerID, |
117 | string message, UUID textureID, int ch, string[] buttonlabels) | 118 | string message, UUID textureID, int ch, string[] buttonlabels) |
118 | { | 119 | { |
119 | CachedUserInfo info = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(ownerID); | 120 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, ownerID); |
120 | string ownerFirstName, ownerLastName; | 121 | string ownerFirstName, ownerLastName; |
121 | if (info != null) | 122 | if (account != null) |
122 | { | 123 | { |
123 | ownerFirstName = info.UserProfile.FirstName; | 124 | ownerFirstName = account.FirstName; |
124 | ownerLastName = info.UserProfile.SurName; | 125 | ownerLastName = account.LastName; |
125 | } | 126 | } |
126 | else | 127 | else |
127 | { | 128 | { |