From 732cd838b1ce2bc5d2c312f510818fd63db76be4 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 5 Feb 2009 21:35:59 +0000 Subject: * Make existing module commanders register as help topics * Typing help will now give a list of these topics at the top (as well as the rest of the current help stuff) * Typing help will give information about commands specific to that topic --- OpenSim/Region/Environment/Scenes/SceneBase.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneBase.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs index 5e7eae5..5b78617 100644 --- a/OpenSim/Region/Environment/Scenes/SceneBase.cs +++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs @@ -286,12 +286,20 @@ namespace OpenSim.Region.Environment.Scenes } } + /// + /// Get a module commander + /// + /// + /// The module commander, null if no module commander with that name was found public ICommander GetCommander(string name) { lock (m_moduleCommanders) { - return m_moduleCommanders[name]; + if (m_moduleCommanders.ContainsKey(name)) + return m_moduleCommanders[name]; } + + return null; } public Dictionary GetCommanders() -- cgit v1.1