Using change-region without a region name will now display the currently active region's name.
parent
16cbc35f0c
commit
d7b7ff3d49
|
@ -371,7 +371,7 @@ namespace OpenSim
|
||||||
/// <param name="cmdparams">Additional arguments passed to the command</param>
|
/// <param name="cmdparams">Additional arguments passed to the command</param>
|
||||||
public void RunCmd(string command, string[] cmdparams)
|
public void RunCmd(string command, string[] cmdparams)
|
||||||
{
|
{
|
||||||
if ((m_consoleRegion == null) || (command == "exit-region"))
|
if ((m_consoleRegion == null) || (command == "exit-region") || (command == "change-region"))
|
||||||
{
|
{
|
||||||
switch (command)
|
switch (command)
|
||||||
{
|
{
|
||||||
|
@ -506,10 +506,21 @@ namespace OpenSim
|
||||||
if (scene.RegionInfo.RegionName.ToLower() == name.ToLower())
|
if (scene.RegionInfo.RegionName.ToLower() == name.ToLower())
|
||||||
{
|
{
|
||||||
m_consoleRegion = scene;
|
m_consoleRegion = scene;
|
||||||
MainLog.Instance.Verbose("Current Region set as: " + m_consoleRegion.RegionInfo.RegionName);
|
MainLog.Instance.Verbose("Setting current region: " + m_consoleRegion.RegionInfo.RegionName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (m_consoleRegion != null)
|
||||||
|
{
|
||||||
|
MainLog.Instance.Verbose("Current Region: " + m_consoleRegion.RegionInfo.RegionName + ". To change region please use 'change-region <regioname>'");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainLog.Instance.Verbose("Currently at Root level. To change region please use 'change-region <regioname>'");
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "exit-region":
|
case "exit-region":
|
||||||
|
|
Loading…
Reference in New Issue