From eaaa7b30c99b89b5483e0a372bb73fe8c8695185 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Fri, 30 Mar 2012 21:40:45 +0200 Subject: Imported Upstream version 2.0.4 --- shell/dbshell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shell/dbshell.cpp') diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp index 443973f..34f2a34 100644 --- a/shell/dbshell.cpp +++ b/shell/dbshell.cpp @@ -126,8 +126,11 @@ void shellHistoryAdd( const char * line ) { return; lastLine = line; - if ((strstr(line, ".auth")) == NULL) + if ( strstr( line, ".auth") == NULL && + strstr( line, ".addUser") == NULL ) + { linenoiseHistoryAdd( line ); + } #endif } -- cgit v1.2.3