aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;