mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Stop saving auth command in redis-cli history.
This commit is contained in:
parent
c082221aef
commit
b263c7c465
@ -1399,8 +1399,10 @@ static void repl(void) {
|
||||
while((line = linenoise(context ? config.prompt : "not connected> ")) != NULL) {
|
||||
if (line[0] != '\0') {
|
||||
argv = cliSplitArgs(line,&argc);
|
||||
if (history) linenoiseHistoryAdd(line);
|
||||
if (historyfile) linenoiseHistorySave(historyfile);
|
||||
if (strcasecmp(argv[0], "auth")) {
|
||||
if (history) linenoiseHistoryAdd(line);
|
||||
if (historyfile) linenoiseHistorySave(historyfile);
|
||||
}
|
||||
|
||||
if (argv == NULL) {
|
||||
printf("Invalid argument(s)\n");
|
||||
|
Loading…
Reference in New Issue
Block a user