commit 00cac2c89024f2cc6c668b56d969ca0fda73927c
parent e35d7693f100e8135b863ce5a08307c44666fa00
Author: hhvn <dev@hhvn.uk>
Date: Tue, 19 Apr 2022 17:25:21 +0100
Set ignored message activity to Activity_ignore
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/commands.c b/src/commands.c
@@ -379,7 +379,7 @@ struct Command commands[] = {
" -E use extended POSIX regex",
" -i case insensitive match",
" -server only ignore for the current server",
- " or server provided by /server.",
+ " or server provided by /server.",
"See also: regex.extended, regex.icase", NULL}},
{NULL, NULL},
};
diff --git a/src/hist.c b/src/hist.c
@@ -157,6 +157,7 @@ hist_add(struct HistInfo *histinfo,
if ((!ign->format || strcmp_n(format_get(new), ign->format) == 0) && regexec(&ign->regex, msg, 0, NULL, 0) == 0) {
options |= HIST_IGN;
new->options = options;
+ activity = Activity_ignore;
break;
}
}