1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 08:13:14 +02:00

Fix STATS output for config-based spamfilters with reasons with spaces.

For config-based spamfilters, the reason was not escaped, meaning that
spaces and underscores did not work as expected.
For example, in "STATS spamfilter" the spaces were displayed as-is
which means that the numeric output was not really parsable.

Apparently this bug exists since UnrealIRCd 5 already...
This commit is contained in:
Bram Matthys
2023-10-06 07:36:26 +02:00
parent 25d5a2ac64
commit 45002eeb6f
+1
View File
@@ -638,6 +638,7 @@ int tkl_config_run_spamfilter(ConfigFile *cf, ConfigEntry *ce, int type)
if (match)
m = unreal_create_match(match_type, match, NULL);
banreason = unreal_encodespace(banreason);
tkl_add_spamfilter(TKL_SPAMF,
id,
target,