]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
Make central spamfilters show in STATS spamfilter as "-centralspamfilter-"
authorBram Matthys <redacted>
Fri, 6 Oct 2023 06:24:20 +0000 (08:24 +0200)
committerBram Matthys <redacted>
Fri, 6 Oct 2023 06:29:19 +0000 (08:29 +0200)
rather than "-config-". Suggested by Lord255.
[skip ci]

src/modules/tkl.c

index d21df58115ec98d0987138a98fd398b1c52ec847..ab20d748619ef2e353fcc5c16e471a507201f018 100644 (file)
@@ -646,7 +646,7 @@ int tkl_config_run_spamfilter(ConfigFile *cf, ConfigEntry *ce, int type)
                           m,
                           rule,
                           except,
-                          "-config-",
+                          (flag & TKL_FLAG_CENTRAL_SPAMFILTER ? "-centralspamfilter-" : "-config-"),
                           0,
                           TStime(),
                           bantime,