From 70496acfbeb968bbd3b8838b0f573edefabf867f Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Tue, 14 Jul 2020 08:30:29 +0200 Subject: [PATCH] Fix spamfilter with tempshun action: was not blocking the message. The tempshun was applied, but the 'trigger' message was let through. Reported by armyn in https://bugs.unrealircd.org/view.php?id=5723 --- src/modules/tkl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tkl.c b/src/modules/tkl.c index e8b3d6ec3..75aade925 100644 --- a/src/modules/tkl.c +++ b/src/modules/tkl.c @@ -4391,7 +4391,7 @@ int _place_host_ban(Client *client, BanAction action, char *reason, long duratio client->user ? client->user->realhost : GetIP(client), reason); SetShunned(client); - break; + return 1; case BAN_ACT_GZLINE: case BAN_ACT_GLINE: case BAN_ACT_SOFT_GLINE: