From 577064fb9dfa2fa3429e3d3408e055b44636655c Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Wed, 4 Feb 2009 20:37:20 +0000
Subject: * minor: remove deprecated and unused terrain method from
SceneManager * other minor tidy up
---
OpenSim/Region/Application/OpenSim.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/Application')
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
///
/// Runs the best matching plugin command
- ///
- /// returns true if a match was found, false otherwise.
///
+ ///
+ ///
+ /// true if a match was found, false otherwise
public bool RunPluginCommands(string cmd, string[] withParams)
{
ConsolePluginCommand bestMatch = null;
int bestLength = 0;
String cmdWithParams = cmd + " " + String.Join(" ",withParams);
+
foreach (ConsolePluginCommand cmdinfo in m_PluginCommandInfos)
{
int matchLen = cmdinfo.matchLength(cmdWithParams);
@@ -1102,6 +1104,7 @@ namespace OpenSim
bestLength = matchLen;
}
}
+
if (bestMatch == null) return false;
bestMatch.Run(cmd,withParams);//.Substring(bestLength));
return true;
--
cgit v1.1