mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
More content_search() tweaks.
This commit is contained in:
parent
1531e81a31
commit
1632e009a4
1 changed files with 3 additions and 4 deletions
7
data.c
7
data.c
|
@ -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--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue