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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user