diff options
author | Jonathan Freedman | 2010-11-21 20:01:48 -0800 |
---|---|---|
committer | Jonathan Freedman | 2010-11-21 20:01:48 -0800 |
commit | b7f5e8284360f92e0e102b9546076573c57d9397 (patch) | |
tree | 132663da8c1882e524241b55a739ef2758ef8958 /OpenSim/Framework/Console | |
parent | Merge https://github.com/opensim/opensim into mantis5110 (diff) | |
parent | Merge branch 'master' of /var/git/opensim/ (diff) | |
download | opensim-SC_OLD-b7f5e8284360f92e0e102b9546076573c57d9397.zip opensim-SC_OLD-b7f5e8284360f92e0e102b9546076573c57d9397.tar.gz opensim-SC_OLD-b7f5e8284360f92e0e102b9546076573c57d9397.tar.bz2 opensim-SC_OLD-b7f5e8284360f92e0e102b9546076573c57d9397.tar.xz |
Merge branch 'master-core' into mantis5110
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r-- | OpenSim/Framework/Console/LocalConsole.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs index 5f2f404..eda41b8 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,8 +493,11 @@ 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 |
495 | return cmdline.ToString(); | 497 | if (echo && commandLine != "") |
498 | AddToHistory(commandLine); | ||
499 | |||
500 | return commandLine; | ||
496 | default: | 501 | default: |
497 | break; | 502 | break; |
498 | } | 503 | } |