mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-31 07:22:26 +01:00
Don't crash when reading spamfilters from tkldb that don't compile (anymore).
For example, because of a different version of PCRE2, or because of the switch from non-UTF8 to UTF8 (or vice versa) which disallows certain byte sequences.
This commit is contained in:
parent
1d34753f18
commit
8398c8cd8d
1 changed files with 2 additions and 1 deletions
|
@ -713,7 +713,8 @@ int read_tkldb(void)
|
|||
R_SAFE(unrealdb_read_int64(db, &v));
|
||||
tkl->ptr.spamfilter->tkl_duration = v;
|
||||
|
||||
if (find_tkl_spamfilter(tkl->type, tkl->ptr.spamfilter->match->str,
|
||||
if (!do_not_add &&
|
||||
find_tkl_spamfilter(tkl->type, tkl->ptr.spamfilter->match->str,
|
||||
tkl->ptr.spamfilter->action->action,
|
||||
tkl->ptr.spamfilter->target))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue