diff options
author | Justin Clarke Casey | 2009-02-05 21:35:59 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-02-05 21:35:59 +0000 |
commit | 732cd838b1ce2bc5d2c312f510818fd63db76be4 (patch) | |
tree | 66617238b33626990d7eb2d9f5da041f3e57eaa6 /OpenSim/Region/Environment/Scenes | |
parent | * Use the commander name to register module commanders instead of providing t... (diff) | |
download | opensim-SC_OLD-732cd838b1ce2bc5d2c312f510818fd63db76be4.zip opensim-SC_OLD-732cd838b1ce2bc5d2c312f510818fd63db76be4.tar.gz opensim-SC_OLD-732cd838b1ce2bc5d2c312f510818fd63db76be4.tar.bz2 opensim-SC_OLD-732cd838b1ce2bc5d2c312f510818fd63db76be4.tar.xz |
* 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 <topic> will give information about commands specific to that topic
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneBase.cs | 10 |
1 files changed, 9 insertions, 1 deletions
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 | |||
286 | } | 286 | } |
287 | } | 287 | } |
288 | 288 | ||
289 | /// <summary> | ||
290 | /// Get a module commander | ||
291 | /// </summary> | ||
292 | /// <param name="name"></param> | ||
293 | /// <returns>The module commander, null if no module commander with that name was found</returns> | ||
289 | public ICommander GetCommander(string name) | 294 | public ICommander GetCommander(string name) |
290 | { | 295 | { |
291 | lock (m_moduleCommanders) | 296 | lock (m_moduleCommanders) |
292 | { | 297 | { |
293 | return m_moduleCommanders[name]; | 298 | if (m_moduleCommanders.ContainsKey(name)) |
299 | return m_moduleCommanders[name]; | ||
294 | } | 300 | } |
301 | |||
302 | return null; | ||
295 | } | 303 | } |
296 | 304 | ||
297 | public Dictionary<string, ICommander> GetCommanders() | 305 | public Dictionary<string, ICommander> GetCommanders() |