diff options
author | opensim mirror account | 2010-11-17 15:40:03 -0800 |
---|---|---|
committer | opensim mirror account | 2010-11-17 15:40:03 -0800 |
commit | a1bc7f4ba12ba8a4d5ff51c2495389b05894a3c6 (patch) | |
tree | 3088c83c67ccd618ef9259d94602c2ae747a5cbe /OpenSim | |
parent | Merge branch 'master' of /var/git/opensim/ (diff) | |
parent | save all lines to history, not just those which turn out to be valid comands.... (diff) | |
download | opensim-SC_OLD-a1bc7f4ba12ba8a4d5ff51c2495389b05894a3c6.zip opensim-SC_OLD-a1bc7f4ba12ba8a4d5ff51c2495389b05894a3c6.tar.gz opensim-SC_OLD-a1bc7f4ba12ba8a4d5ff51c2495389b05894a3c6.tar.bz2 opensim-SC_OLD-a1bc7f4ba12ba8a4d5ff51c2495389b05894a3c6.tar.xz |
Merge branch 'master' of /var/git/opensim/
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Console/LocalConsole.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs index 5f2f404..6966211 100644 --- a/OpenSim/Framework/Console/LocalConsole.cs +++ b/OpenSim/Framework/Console/LocalConsole.cs | |||
@@ -473,9 +473,11 @@ namespace OpenSim.Framework.Console | |||
473 | y = -1; | 473 | y = -1; |
474 | } | 474 | } |
475 | 475 | ||
476 | string commandLine = cmdline.ToString(); | ||
477 | |||
476 | if (isCommand) | 478 | if (isCommand) |
477 | { | 479 | { |
478 | string[] cmd = Commands.Resolve(Parser.Parse(cmdline.ToString())); | 480 | string[] cmd = Commands.Resolve(Parser.Parse(commandLine)); |
479 | 481 | ||
480 | if (cmd.Length != 0) | 482 | if (cmd.Length != 0) |
481 | { | 483 | { |
@@ -491,7 +493,10 @@ namespace OpenSim.Framework.Console | |||
491 | } | 493 | } |
492 | } | 494 | } |
493 | 495 | ||
494 | //AddToHistory(cmdline.ToString()); | 496 | // If we're not echoing to screen (e.g. a password) then we probably don't want it in history |
497 | if (echo && commandLine != "") | ||
498 | AddToHistory(commandLine); | ||
499 | |||
495 | return cmdline.ToString(); | 500 | return cmdline.ToString(); |
496 | default: | 501 | default: |
497 | break; | 502 | break; |