From 59ecd6d151a990454847358fc4f83fb210913741 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 9 Jan 2010 23:25:34 +0000 Subject: [PATCH] Temp fix: initialize flags value to prevent exception --- OpenSim/Services/GridService/GridService.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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; + } + + + } } }