aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-04 20:37:20 +0000
committerJustin Clarke Casey2009-02-04 20:37:20 +0000
commit577064fb9dfa2fa3429e3d3408e055b44636655c (patch)
tree7b27570e2b0b7c54ce2e72d9a4725738b37e1a3a /OpenSim/Region/Application/OpenSim.cs
parent* Introduce a new "default" option for asset_database in the [STORAGE] section (diff)
downloadopensim-SC_OLD-577064fb9dfa2fa3429e3d3408e055b44636655c.zip
opensim-SC_OLD-577064fb9dfa2fa3429e3d3408e055b44636655c.tar.gz
opensim-SC_OLD-577064fb9dfa2fa3429e3d3408e055b44636655c.tar.bz2
opensim-SC_OLD-577064fb9dfa2fa3429e3d3408e055b44636655c.tar.xz
* minor: remove deprecated and unused terrain method from SceneManager
* other minor tidy up
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 802adcd..ac6a5c1 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -1085,14 +1085,16 @@ namespace OpenSim
1085 1085
1086 /// <summary> 1086 /// <summary>
1087 /// Runs the best matching plugin command 1087 /// Runs the best matching plugin command
1088 ///
1089 /// returns true if a match was found, false otherwise.
1090 /// </summary> 1088 /// </summary>
1089 /// <param name="cmd"></param>
1090 /// <param name="withParams"></param>
1091 /// <returns>true if a match was found, false otherwise</returns>
1091 public bool RunPluginCommands(string cmd, string[] withParams) 1092 public bool RunPluginCommands(string cmd, string[] withParams)
1092 { 1093 {
1093 ConsolePluginCommand bestMatch = null; 1094 ConsolePluginCommand bestMatch = null;
1094 int bestLength = 0; 1095 int bestLength = 0;
1095 String cmdWithParams = cmd + " " + String.Join(" ",withParams); 1096 String cmdWithParams = cmd + " " + String.Join(" ",withParams);
1097
1096 foreach (ConsolePluginCommand cmdinfo in m_PluginCommandInfos) 1098 foreach (ConsolePluginCommand cmdinfo in m_PluginCommandInfos)
1097 { 1099 {
1098 int matchLen = cmdinfo.matchLength(cmdWithParams); 1100 int matchLen = cmdinfo.matchLength(cmdWithParams);
@@ -1102,6 +1104,7 @@ namespace OpenSim
1102 bestLength = matchLen; 1104 bestLength = matchLen;
1103 } 1105 }
1104 } 1106 }
1107
1105 if (bestMatch == null) return false; 1108 if (bestMatch == null) return false;
1106 bestMatch.Run(cmd,withParams);//.Substring(bestLength)); 1109 bestMatch.Run(cmd,withParams);//.Substring(bestLength));
1107 return true; 1110 return true;