Allow comments to appear in command scripts (e.g. shutdown_commands.txt).
These can start with ; # or //0.7.4.1
parent
34f6f87b6c
commit
aa881e8065
|
@ -503,7 +503,11 @@ namespace OpenSim
|
|||
string currentCommand;
|
||||
while ((currentCommand = readFile.ReadLine()) != null)
|
||||
{
|
||||
if (currentCommand != String.Empty)
|
||||
currentCommand = currentCommand.Trim();
|
||||
if (!(currentCommand == ""
|
||||
|| currentCommand.StartsWith(";")
|
||||
|| currentCommand.StartsWith("//")
|
||||
|| currentCommand.StartsWith("#")))
|
||||
{
|
||||
m_log.Info("[COMMANDFILE]: Running '" + currentCommand + "'");
|
||||
m_console.RunCommand(currentCommand);
|
||||
|
|
Loading…
Reference in New Issue