diff options
author | Charles Krinke | 2008-08-02 02:53:11 +0000 |
---|---|---|
committer | Charles Krinke | 2008-08-02 02:53:11 +0000 |
commit | dba4d357c80f0f05bafe6002c5ea8d9dddc977c4 (patch) | |
tree | 0a8dbd767f470302ff20c7b74f8ef8b4793c53d1 /OpenSim/Region | |
parent | * minor: add url pointing back to wiki information for GridInfo section (diff) | |
download | opensim-SC_OLD-dba4d357c80f0f05bafe6002c5ea8d9dddc977c4.zip opensim-SC_OLD-dba4d357c80f0f05bafe6002c5ea8d9dddc977c4.tar.gz opensim-SC_OLD-dba4d357c80f0f05bafe6002c5ea8d9dddc977c4.tar.bz2 opensim-SC_OLD-dba4d357c80f0f05bafe6002c5ea8d9dddc977c4.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 14 |
1 files changed, 13 insertions, 1 deletions
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 | |||
132 | } | 132 | } |
133 | } | 133 | } |
134 | 134 | ||
135 | private string GetActualSimName() | ||
136 | { | ||
137 | if (m_sceneManager.CurrentScene == null) return "Root"; | ||
138 | return m_sceneManager.CurrentScene.RegionInfo.RegionName; | ||
139 | } | ||
140 | |||
141 | |||
135 | #region Console Commands | 142 | #region Console Commands |
136 | 143 | ||
137 | private void RunEchoTest(string[] cmdparams) | 144 | private void RunEchoTest(string[] cmdparams) |
@@ -284,8 +291,10 @@ namespace OpenSim | |||
284 | m_console.Notice("create user - adds a new user."); | 291 | m_console.Notice("create user - adds a new user."); |
285 | } | 292 | } |
286 | 293 | ||
294 | |||
295 | m_console.Notice(""); | ||
296 | m_console.Notice("Serving region " + GetActualSimName()); | ||
287 | m_console.Notice(""); | 297 | m_console.Notice(""); |
288 | |||
289 | break; | 298 | break; |
290 | 299 | ||
291 | case "save-xml": | 300 | case "save-xml": |
@@ -665,6 +674,9 @@ namespace OpenSim | |||
665 | }); | 674 | }); |
666 | break; | 675 | break; |
667 | } | 676 | } |
677 | m_console.Notice(""); | ||
678 | m_console.Notice("Serving region " + GetActualSimName()); | ||
679 | m_console.Notice(""); | ||
668 | } | 680 | } |
669 | 681 | ||
670 | /// <summary> | 682 | /// <summary> |