aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index f561d97..6bac468 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3005,7 +3005,9 @@ namespace OpenSim.Region.Framework.Scenes
3005 // client is for a root or child agent. 3005 // client is for a root or child agent.
3006 client.SceneAgent = sp; 3006 client.SceneAgent = sp;
3007 3007
3008 // Cache the user's name 3008 // This is currently also being done earlier in NewUserConnection for real users to see if this
3009 // resolves problems where HG agents are occasionally seen by others as "Unknown user" in chat and other
3010 // places. However, we still need to do it here for NPCs.
3009 CacheUserName(sp, aCircuit); 3011 CacheUserName(sp, aCircuit);
3010 3012
3011 EventManager.TriggerOnNewClient(client); 3013 EventManager.TriggerOnNewClient(client);
@@ -3029,7 +3031,7 @@ namespace OpenSim.Region.Framework.Scenes
3029 { 3031 {
3030 string first = aCircuit.firstname, last = aCircuit.lastname; 3032 string first = aCircuit.firstname, last = aCircuit.lastname;
3031 3033
3032 if (sp.PresenceType == PresenceType.Npc) 3034 if (sp != null && sp.PresenceType == PresenceType.Npc)
3033 { 3035 {
3034 UserManagementModule.AddUser(aCircuit.AgentID, first, last); 3036 UserManagementModule.AddUser(aCircuit.AgentID, first, last);
3035 } 3037 }
@@ -3942,8 +3944,12 @@ namespace OpenSim.Region.Framework.Scenes
3942 CapsModule.SetAgentCapsSeeds(agent); 3944 CapsModule.SetAgentCapsSeeds(agent);
3943 } 3945 }
3944 } 3946 }
3945 }
3946 3947
3948 // Try caching an incoming user name much earlier on to see if this helps with an issue
3949 // where HG users are occasionally seen by others as "Unknown User" because their UUIDName
3950 // request for the HG avatar appears to trigger before the user name is cached.
3951 CacheUserName(null, agent);
3952 }
3947 3953
3948 if (CapsModule != null) 3954 if (CapsModule != null)
3949 { 3955 {