Skip consecutive duplicate slash commands in history

This commit is contained in:
Johannes Findeisen 2026-12-02 00:26:41 +01:00
commit 7b85ec7e5e

1
irc9.c
View file

@ -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;