From dba4d357c80f0f05bafe6002c5ea8d9dddc977c4 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 2 Aug 2008 02:53:11 +0000 Subject: 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. --- OpenSim/Region/Application/OpenSim.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 714a777..2b59e5d 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -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(""); } /// -- cgit v1.1