diff options
author | Diva Canto | 2010-08-15 17:25:27 -0700 |
---|---|---|
committer | Diva Canto | 2010-08-15 17:29:48 -0700 |
commit | 50a88ed2e46e76117d8c33d37b037bb8ae2ad14d (patch) | |
tree | d54eee040caae228ab6b117b1fe00725648698e9 /OpenSim/Services/HypergridService/GatekeeperService.cs | |
parent | Configuration files can read include files from relative paths. (diff) | |
download | opensim-SC_OLD-50a88ed2e46e76117d8c33d37b037bb8ae2ad14d.zip opensim-SC_OLD-50a88ed2e46e76117d8c33d37b037bb8ae2ad14d.tar.gz opensim-SC_OLD-50a88ed2e46e76117d8c33d37b037bb8ae2ad14d.tar.bz2 opensim-SC_OLD-50a88ed2e46e76117d8c33d37b037bb8ae2ad14d.tar.xz |
Thanks Marck for the patch to mantis #4941 (shortening avies' names on HG)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/HypergridService/GatekeeperService.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs index 3aaafe8..6f041da 100644 --- a/OpenSim/Services/HypergridService/GatekeeperService.cs +++ b/OpenSim/Services/HypergridService/GatekeeperService.cs | |||
@@ -259,7 +259,16 @@ namespace OpenSim.Services.HypergridService | |||
259 | if (account == null && !aCircuit.lastname.StartsWith("@")) | 259 | if (account == null && !aCircuit.lastname.StartsWith("@")) |
260 | { | 260 | { |
261 | aCircuit.firstname = aCircuit.firstname + "." + aCircuit.lastname; | 261 | aCircuit.firstname = aCircuit.firstname + "." + aCircuit.lastname; |
262 | aCircuit.lastname = "@" + aCircuit.ServiceURLs["HomeURI"].ToString(); | 262 | try |
263 | { | ||
264 | Uri uri = new Uri(aCircuit.ServiceURLs["HomeURI"].ToString()); | ||
265 | aCircuit.lastname = "@" + uri.Host; // + ":" + uri.Port; | ||
266 | } | ||
267 | catch | ||
268 | { | ||
269 | m_log.WarnFormat("[GATEKEEPER SERVICE]: Malformed HomeURI (this should never happen): {0}", aCircuit.ServiceURLs["HomeURI"]); | ||
270 | aCircuit.lastname = "@" + aCircuit.ServiceURLs["HomeURI"].ToString(); | ||
271 | } | ||
263 | } | 272 | } |
264 | 273 | ||
265 | // | 274 | // |