Skip consecutive duplicate slash commands in history
This commit is contained in:
parent
b208b5b696
commit
7b85ec7e5e
1 changed files with 1 additions and 0 deletions
1
irc9.c
1
irc9.c
|
|
@ -1968,6 +1968,7 @@ static void history_load(void)
|
||||||
|
|
||||||
static void history_record(const char *line)
|
static void history_record(const char *line)
|
||||||
{
|
{
|
||||||
|
if (hist_n && strcmp(history[hist_n - 1], line) == 0) return;
|
||||||
history_add(line);
|
history_add(line);
|
||||||
if (!*history_path) return;
|
if (!*history_path) return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue