diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 884bc95fa7..31163a506e 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs @@ -58,6 +58,13 @@ namespace OpenSim.Services.GridService { m_DeleteOnUnregister = gridConfig.GetBoolean("DeleteOnUnregister", true); } + + MainConsole.Instance.Commands.AddCommand("grid", true, + "show region", + "show region ", + "Show details on a region", + "Display all details about a registered grid region", + HandleShowRegion); } #region IGridService @@ -93,6 +100,7 @@ namespace OpenSim.Services.GridService // Everything is ok, let's register RegionData rdata = RegionInfo2RegionData(regionInfos); rdata.ScopeID = scopeID; + rdata.Data["flags"] = "0"; if (region != null) { @@ -287,5 +295,16 @@ namespace OpenSim.Services.GridService return Convert.ToInt32(region.Data["flags"]); } + + private void HandleShowRegion(string module, string[] cmd) + { + if (cmd.Length != 3) + { + MainConsole.Instance.Output("Syntax: show region "); + return; + } + + + } } }