diff options
author | Justin Clark-Casey (justincc) | 2012-03-16 03:32:14 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-16 03:32:14 +0000 |
commit | 9497a7c7bd901686999da7bc1cba0b587186570b (patch) | |
tree | 733b3f91d8ae2f37f9c89a48dc101b762f285fd6 /OpenSim/Region/ScriptEngine/XEngine | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-9497a7c7bd901686999da7bc1cba0b587186570b.zip opensim-SC-9497a7c7bd901686999da7bc1cba0b587186570b.tar.gz opensim-SC-9497a7c7bd901686999da7bc1cba0b587186570b.tar.bz2 opensim-SC-9497a7c7bd901686999da7bc1cba0b587186570b.tar.xz |
refactor: separate out console and status report generation parts of XEngine
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 3697f78..d4108d7 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -380,6 +380,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
380 | if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_Scene)) | 380 | if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_Scene)) |
381 | return; | 381 | return; |
382 | 382 | ||
383 | MainConsole.Instance.OutputFormat(GetStatusReport()); | ||
384 | } | ||
385 | |||
386 | public string GetStatusReport() | ||
387 | { | ||
383 | StringBuilder sb = new StringBuilder(); | 388 | StringBuilder sb = new StringBuilder(); |
384 | sb.AppendFormat("Status of XEngine instance for {0}\n", m_Scene.RegionInfo.RegionName); | 389 | sb.AppendFormat("Status of XEngine instance for {0}\n", m_Scene.RegionInfo.RegionName); |
385 | 390 | ||
@@ -407,7 +412,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
407 | Listener l = AsyncCommandManager.GetListenerPlugin(this); | 412 | Listener l = AsyncCommandManager.GetListenerPlugin(this); |
408 | sb.AppendFormat("Listeners : {0}\n", l.ListenerCount); | 413 | sb.AppendFormat("Listeners : {0}\n", l.ListenerCount); |
409 | 414 | ||
410 | MainConsole.Instance.OutputFormat(sb.ToString()); | 415 | return sb.ToString(); |
411 | } | 416 | } |
412 | 417 | ||
413 | public void HandleShowScripts(string module, string[] cmdparams) | 418 | public void HandleShowScripts(string module, string[] cmdparams) |