summaryrefslogtreecommitdiff
path: root/shell/dbshell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shell/dbshell.cpp')
-rw-r--r--shell/dbshell.cpp5
1 files changed, 4 insertions, 1 deletions
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
}