diff --git a/irc9.c b/irc9.c index 53e4273..38cfe4b 100644 --- a/irc9.c +++ b/irc9.c @@ -1968,6 +1968,7 @@ static void history_load(void) static void history_record(const char *line) { + if (hist_n && strcmp(history[hist_n - 1], line) == 0) return; history_add(line); if (!*history_path) return;