diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index ea1de80250..deda62a719 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -2004,26 +2004,14 @@ namespace OpenSim.Framework // in the agent circuit data for foreigners if (lastName.Contains("@")) { - string agentsURI = acircuit.ServiceURLs["HomeURI"].ToString(); - if (!agentsURI.EndsWith("/")) - agentsURI += "/"; string[] parts = firstName.Split(new char[] { '.' }); if (parts.Length == 2) return id.ToString() + ";" + agentsURI + ";" + parts[0] + " " + parts[1]; } return id.ToString() + ";" + agentsURI + ";" + firstName + " " + lastName; - + } - // This is ugly, but there's no other way, given that the name is changed - // in the agent circuit data for foreigners - if (acircuit.lastname.Contains("@")) - { - string[] parts = acircuit.firstname.Split(new char[] { '.' }); - if (parts.Length == 2) - return acircuit.AgentID.ToString() + ";" + agentsURI + ";" + parts[0] + " " + parts[1]; - } - return acircuit.AgentID.ToString() + ";" + agentsURI + ";" + acircuit.firstname + " " + acircuit.lastname; /// /// Produces a universal (HG) user-facing name given the information /// @@ -2038,9 +2026,6 @@ namespace OpenSim.Framework { uri = new Uri(homeURI); } - else - return acircuit.AgentID.ToString(); - } catch (UriFormatException) { return firstName + " " + lastName;