aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-07-18 22:27:39 +0100
committerJustin Clark-Casey (justincc)2014-07-18 22:27:39 +0100
commit9be935ac6d74fd3b8c0c95058a575e400dd916a4 (patch)
treee3fb5cc9f75bb555f879dcfda5a496eaf4a2594b /OpenSim/Services
parentrefactor: slightly adjust some code in ODECharacter.Move() to eliminate a con... (diff)
downloadopensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.zip
opensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.tar.gz
opensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.tar.bz2
opensim-SC-9be935ac6d74fd3b8c0c95058a575e400dd916a4.tar.xz
Add ICommands.HasCommand() method so that we can detect whether a command has already been registered without needing to also run it
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/GridService/GridService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index 02ed90e..aa19fc7 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -96,7 +96,7 @@ namespace OpenSim.Services.GridService
96 // has an identically named command 96 // has an identically named command
97 // 97 //
98 // XXX: We're relying on the OpenSimulator version being registered first, which is not well defined. 98 // XXX: We're relying on the OpenSimulator version being registered first, which is not well defined.
99 if (MainConsole.Instance.Commands.Resolve(new string[] { "show", "regions" }).Length == 0) 99 if (!MainConsole.Instance.Commands.HasCommand("show regions"))
100 MainConsole.Instance.Commands.AddCommand("Regions", true, 100 MainConsole.Instance.Commands.AddCommand("Regions", true,
101 "show regions", 101 "show regions",
102 "show regions", 102 "show regions",