aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs36
1 files changed, 4 insertions, 32 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a0ae82f..d3a4678 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -188,6 +188,8 @@ namespace OpenSim.Region.Framework.Scenes
188 private Timer m_mapGenerationTimer = new Timer(); 188 private Timer m_mapGenerationTimer = new Timer();
189 private bool m_generateMaptiles; 189 private bool m_generateMaptiles;
190 190
191 private Dictionary<UUID, string[]> m_UserNamesCache = new Dictionary<UUID, string[]>();
192
191 #endregion Fields 193 #endregion Fields
192 194
193 #region Properties 195 #region Properties
@@ -814,36 +816,6 @@ namespace OpenSim.Region.Framework.Scenes
814 return m_simulatorVersion; 816 return m_simulatorVersion;
815 } 817 }
816 818
817 public string[] GetUserNames(UUID uuid)
818 {
819 string[] returnstring = new string[0];
820
821 UserAccount account = UserAccountService.GetUserAccount(RegionInfo.ScopeID, uuid);
822
823 if (account != null)
824 {
825 returnstring = new string[2];
826 returnstring[0] = account.FirstName;
827 returnstring[1] = account.LastName;
828 }
829
830 return returnstring;
831 }
832
833 public string GetUserName(UUID uuid)
834 {
835 string[] names = GetUserNames(uuid);
836 if (names.Length == 2)
837 {
838 string firstname = names[0];
839 string lastname = names[1];
840
841 return firstname + " " + lastname;
842
843 }
844 return "(hippos)";
845 }
846
847 /// <summary> 819 /// <summary>
848 /// Another region is up. 820 /// Another region is up.
849 /// 821 ///
@@ -2907,7 +2879,7 @@ namespace OpenSim.Region.Framework.Scenes
2907 2879
2908 public virtual void SubscribeToClientGridEvents(IClientAPI client) 2880 public virtual void SubscribeToClientGridEvents(IClientAPI client)
2909 { 2881 {
2910 client.OnNameFromUUIDRequest += HandleUUIDNameRequest; 2882 //client.OnNameFromUUIDRequest += HandleUUIDNameRequest;
2911 client.OnMoneyTransferRequest += ProcessMoneyTransferRequest; 2883 client.OnMoneyTransferRequest += ProcessMoneyTransferRequest;
2912 client.OnAvatarPickerRequest += ProcessAvatarPickerRequest; 2884 client.OnAvatarPickerRequest += ProcessAvatarPickerRequest;
2913 client.OnSetStartLocationRequest += SetHomeRezPoint; 2885 client.OnSetStartLocationRequest += SetHomeRezPoint;
@@ -3034,7 +3006,7 @@ namespace OpenSim.Region.Framework.Scenes
3034 3006
3035 public virtual void UnSubscribeToClientGridEvents(IClientAPI client) 3007 public virtual void UnSubscribeToClientGridEvents(IClientAPI client)
3036 { 3008 {
3037 client.OnNameFromUUIDRequest -= HandleUUIDNameRequest; 3009 //client.OnNameFromUUIDRequest -= HandleUUIDNameRequest;
3038 client.OnMoneyTransferRequest -= ProcessMoneyTransferRequest; 3010 client.OnMoneyTransferRequest -= ProcessMoneyTransferRequest;
3039 client.OnAvatarPickerRequest -= ProcessAvatarPickerRequest; 3011 client.OnAvatarPickerRequest -= ProcessAvatarPickerRequest;
3040 client.OnSetStartLocationRequest -= SetHomeRezPoint; 3012 client.OnSetStartLocationRequest -= SetHomeRezPoint;