commit cf034bb00c31c601e719624a4e01461f98490b95
parent 7f4c6d5ccdd5ad3f85ddf7c894b74692b343a135
Author: hhvn <dev@hhvn.uk>
Date: Fri, 22 Apr 2022 16:59:33 +0100
Fix ignore server matching
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hist.c b/src/hist.c
@@ -154,7 +154,7 @@ hist_add(struct HistInfo *histinfo,
if (!(options & HIST_NIGN)) {
for (ign = ignores; ign; ign = ign->next) {
- if (!ign->server || (histinfo->server && strcmp_n(ign->server, histinfo->server->name))) {
+ if (!ign->server || (histinfo->server && strcmp_n(ign->server, histinfo->server->name) == 0)) {
if ((!ign->format || strcmp_n(format_get(new), ign->format) == 0) && regexec(&ign->regex, msg, 0, NULL, 0) == 0) {
if (!ign->noact) {
options |= HIST_IGN;