From 42857fe4e9e898c8e350da2f9acb3b252b31694a Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 18 Mar 2008 05:44:25 +0000 Subject: * Added the ability to type the partial name of a region in the start location box and go to that region if it's there. If no close match was found, it sends you home. This is tested on mySQL. There's untested code on grids that are based on sqlite and MSSQL. The SQL statements *should* be right, but your results may very. * Ex, if you want to go to Wright Plaza, you simply need to type Wright Plaza in the start location in the client when you log-in. --- OpenSim/Region/Communications/Local/LocalBackEndServices.cs | 6 ++++++ OpenSim/Region/Communications/Local/LocalLoginService.cs | 2 ++ 2 files changed, 8 insertions(+) (limited to 'OpenSim/Region/Communications/Local') diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs index 5df2e66..8cc1312 100644 --- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs +++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs @@ -176,6 +176,12 @@ namespace OpenSim.Region.Communications.Local return null; } + public RegionInfo RequestClosestRegion(string regionName) + { + // Don't use this method. It's only for SLURLS and Logins + return null; + } + /// /// /// diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index 41f5b3d..eff597e 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs @@ -135,6 +135,8 @@ namespace OpenSim.Region.Communications.Local } else { + m_log.Info("[LOGIN]: Got Custom Login URL, but can't process it"); + // LocalBackEndServices can't possibly look up a region by name :( // TODO: Parse string in the following format: 'uri:RegionName&X&Y&Z' currentRegion = theUser.currentAgent.currentHandle; } -- cgit v1.1