More content_search() tweaks.

This commit is contained in:
default 2024-05-10 11:42:15 +02:00
parent 1531e81a31
commit 1632e009a4

7
data.c
View file

@ -2592,12 +2592,11 @@ xs_list *content_search(snac *user, const char *regex,
xs *l = xs_regex_select_n(c, regex, 1);
if (xs_list_len(l)) {
if (skip)
if (skip > 0)
skip--;
else {
xs_set_add(&seen, md5);
else
if (xs_set_add(&seen, md5) == 1)
show--;
}
}
}