mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
save all lines to history, not just those which turn out to be valid comands. does not store passwords
also, blank lines are not stored to history this makes it easier to go back and correct a command which was simply mistyped rather than having to type it out again
This commit is contained in:
@@ -473,9 +473,11 @@ namespace OpenSim.Framework.Console
|
||||
y = -1;
|
||||
}
|
||||
|
||||
string commandLine = cmdline.ToString();
|
||||
|
||||
if (isCommand)
|
||||
{
|
||||
string[] cmd = Commands.Resolve(Parser.Parse(cmdline.ToString()));
|
||||
string[] cmd = Commands.Resolve(Parser.Parse(commandLine));
|
||||
|
||||
if (cmd.Length != 0)
|
||||
{
|
||||
@@ -491,7 +493,10 @@ namespace OpenSim.Framework.Console
|
||||
}
|
||||
}
|
||||
|
||||
//AddToHistory(cmdline.ToString());
|
||||
// If we're not echoing to screen (e.g. a password) then we probably don't want it in history
|
||||
if (echo && commandLine != "")
|
||||
AddToHistory(commandLine);
|
||||
|
||||
return cmdline.ToString();
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user