From 7b85ec7e5e31cf8732c184c51749e80c7c295986 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 2 Dec 2026 00:26:41 +0100 Subject: [PATCH] Skip consecutive duplicate slash commands in history --- irc9.c | 1 + 1 file changed, 1 insertion(+) 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;