From a5488650ff8b92f4d6e498b2960c68b1b4f3d81e Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 15 Mar 2012 20:22:26 -0700 Subject: [PATCH] More on map search: send extra messages to the user regarding the region being found or not, because the UI is horribly confusing -- places profile is always "loading..." whether the region exists or not. --- .../CoreModules/World/WorldMap/MapSearchModule.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs index 83ec6c3e3f..d60909c2f6 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs @@ -159,6 +159,17 @@ namespace OpenSim.Region.CoreModules.World.WorldMap // flags are agent flags sent from the viewer. // they have different values depending on different viewers, apparently remoteClient.SendMapBlock(blocks, flags); + + // send extra user messages for V3 + // because the UI is very confusing + // while we don't fix the hard-coded urls + if (flags == 2) + { + if (regionInfos.Count == 0) + remoteClient.SendAgentAlertMessage("No regions found with that name.", true); + else if (regionInfos.Count == 1) + remoteClient.SendAgentAlertMessage("Region found!", false); + } } // private Scene GetClientScene(IClientAPI client)