Temp fix: initialize flags value to prevent exception

slimupdates
Melanie 2010-01-09 23:25:34 +00:00
parent 28d6705358
commit 59ecd6d151
1 changed files with 19 additions and 0 deletions

View File

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