aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs
index 72ec869..c59992e 100644
--- a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs
@@ -34,6 +34,7 @@ using OpenSim.Framework;
34using OpenSim.Framework.Communications.Cache; 34using OpenSim.Framework.Communications.Cache;
35using OpenSim.Region.Framework.Interfaces; 35using OpenSim.Region.Framework.Interfaces;
36using OpenSim.Region.Framework.Scenes; 36using OpenSim.Region.Framework.Scenes;
37using OpenSim.Services.Interfaces;
37 38
38namespace OpenSim.Region.CoreModules.Avatar.Dialog 39namespace 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 {