aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-06 18:18:01 +0000
committerJustin Clarke Casey2009-02-06 18:18:01 +0000
commit00a3cbd6fa9d84fe28b3a7f033e2452d6a3f1d69 (patch)
treef70297e039ebd6fc1c69e226e5f28683476d61d6 /OpenSim/Region/Application
parentThis changeset is the step 1 of 2 in refactoring (diff)
downloadopensim-SC_OLD-00a3cbd6fa9d84fe28b3a7f033e2452d6a3f1d69.zip
opensim-SC_OLD-00a3cbd6fa9d84fe28b3a7f033e2452d6a3f1d69.tar.gz
opensim-SC_OLD-00a3cbd6fa9d84fe28b3a7f033e2452d6a3f1d69.tar.bz2
opensim-SC_OLD-00a3cbd6fa9d84fe28b3a7f033e2452d6a3f1d69.tar.xz
* Implement help <command> from the region console
* So at the moment once can type 'help terrain fill' as well as 'terrain fill help' * Current implementation is a transient hack that should be tidied up soon
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs21
1 files changed, 18 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 0cd708b..af42a3d 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -712,10 +712,25 @@ namespace OpenSim
712 } 712 }
713 else 713 else
714 { 714 {
715 ICommander moduleCommander = SceneManager.CurrentOrFirstScene.GetCommander(helpArgs[0]); 715 // Messily we want to join all the help params back here
716 if (moduleCommander != null) 716 //string helpSubject = string.Join(" ", helpArgs);
717
718 // FIXME: Very cheap hack to get transition help working. Will disappear very shortly.
719 if (helpArgs.Length == 1)
717 { 720 {
718 m_console.Notice(moduleCommander.Help); 721 ICommander moduleCommander = SceneManager.CurrentOrFirstScene.GetCommander(helpArgs[0]);
722 if (moduleCommander != null)
723 {
724 m_console.Notice(moduleCommander.Help);
725 }
726 }
727 else
728 {
729 ICommand command = SceneManager.CurrentOrFirstScene.GetCommand(helpArgs[1]);
730 if (command != null)
731 {
732 m_console.Notice(command.Help);
733 }
719 } 734 }
720 } 735 }
721 } 736 }