mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Mantis#1877. Thank you kindly, Sache Magne for a patch that:
This patch allows the operator to see the region currently served. A message "Serving region : xxxxx" appears under help or any show commands.
This commit is contained in:
@@ -132,6 +132,13 @@ namespace OpenSim
|
||||
}
|
||||
}
|
||||
|
||||
private string GetActualSimName()
|
||||
{
|
||||
if (m_sceneManager.CurrentScene == null) return "Root";
|
||||
return m_sceneManager.CurrentScene.RegionInfo.RegionName;
|
||||
}
|
||||
|
||||
|
||||
#region Console Commands
|
||||
|
||||
private void RunEchoTest(string[] cmdparams)
|
||||
@@ -284,8 +291,10 @@ namespace OpenSim
|
||||
m_console.Notice("create user - adds a new user.");
|
||||
}
|
||||
|
||||
|
||||
m_console.Notice("");
|
||||
m_console.Notice("Serving region " + GetActualSimName());
|
||||
m_console.Notice("");
|
||||
|
||||
break;
|
||||
|
||||
case "save-xml":
|
||||
@@ -665,6 +674,9 @@ namespace OpenSim
|
||||
});
|
||||
break;
|
||||
}
|
||||
m_console.Notice("");
|
||||
m_console.Notice("Serving region " + GetActualSimName());
|
||||
m_console.Notice("");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user