From a9ce40a722411b976754ff9cef1eb0cc5f2ccd80 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Thu, 22 Nov 2012 05:57:20 +0000 Subject: [PATCH] Factor out command script code. This also allows comments in command scripts (lines starting with ;, # or //) to be used across all servers --- OpenSim/Framework/Servers/ServerBase.cs | 52 ++++++++++++++++++++++- OpenSim/Region/Application/OpenSim.cs | 36 ---------------- OpenSim/Server/Base/ServicesServerBase.cs | 39 ----------------- 3 files changed, 50 insertions(+), 77 deletions(-) diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs index 27cfc9bd6c..c182a3abca 100644 --- a/OpenSim/Framework/Servers/ServerBase.cs +++ b/OpenSim/Framework/Servers/ServerBase.cs @@ -201,6 +201,11 @@ namespace OpenSim.Framework.Servers "General", false, "config save", "config save ", "Save current configuration to a file at the given path", HandleConfig); + + m_console.Commands.AddCommand( + "General", false, "command-script", + "command-script