From f7c61790b7e88d6dd3ac2a226c77d5f43e1e6f05 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Tue, 20 Mar 2012 17:25:52 -0700 Subject: Fixed borkness with previous merge. --- OpenSim/Framework/Util.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index ea1de80..deda62a 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; -- cgit v1.1