diff --git a/doc/RELEASE-NOTES.md b/doc/RELEASE-NOTES.md index f3ed45942..e2bdc0f3a 100644 --- a/doc/RELEASE-NOTES.md +++ b/doc/RELEASE-NOTES.md @@ -3,6 +3,19 @@ UnrealIRCd 6.1.2-git This is the git version (development version) for future 6.1.2. This is work in progress and may not be a stable version. +### Enhancements: +* [set::spamfilter::utf8](https://www.unrealircd.org/docs/Set_block#set::spamfilter::utf8) + is now on by default: + * This means you can safely use UTF8 characters in like `[]` in regex. + * Case insensitive matches work better. For example, for extended + Latin, a spamfilter on `ę` then also matches `Ę`. + * Other PCRE2 features such as [\p](https://www.pcre.org/current/doc/html/pcre2syntax.html#SEC5) + can then be used. For example the regex `\p{Arabic}` would block all Arabic script. + See also this [full list of scripts](https://www.pcre.org/current/doc/html/pcre2syntax.html#SEC7). + Please use this new tool with care. Blocking an entire language or script + is quite a drastic measure. + * You can turn it off via: `set { spamfilter { utf8 yes; } }` + UnrealIRCd 6.1.1.1 ------------------- This 6.1.1.1 version is an update to 6.1.1: a bug and memory leak was fixed diff --git a/src/conf.c b/src/conf.c index e6987e60d..b6e1f65fc 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1671,6 +1671,7 @@ void config_setdefaultsettings(Configuration *i) i->ident_connect_timeout = 3; i->ban_version_tkl_time = 86400; /* 1d */ i->spamfilter_ban_time = 86400; /* 1d */ + i->spamfilter_utf8 = 1; safe_strdup(i->spamfilter_ban_reason, "Spam/advertising"); safe_strdup(i->spamfilter_virus_help_channel, "#help"); i->spamfilter_detectslow_warn = 250;