From 8a655b8bb4a048ce07a30c1207214293edcc529c Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Tue, 15 Jun 2021 20:01:58 +0200 Subject: [PATCH] Fix spamfilter not working with type 'c'. If you had a spamfilter on type 'c' but not on 'p' then it would not trigger. Reported by armyn in https://bugs.unrealircd.org/view.php?id=5913 This probably went unnoticed because most people add spamfilters on 'pc' (or even 'pcnN'). --- src/modules/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/message.c b/src/modules/message.c index e9c9c1994..db8684b66 100644 --- a/src/modules/message.c +++ b/src/modules/message.c @@ -387,7 +387,7 @@ void cmd_message(Client *client, MessageTag *recv_mtags, int parc, char *parv[], if (MyUser(client)) { - int spamtype = (sendtype == SEND_TYPE_NOTICE ? SPAMF_USERNOTICE : SPAMF_USERMSG); + int spamtype = (sendtype == SEND_TYPE_NOTICE ? SPAMF_CHANNOTICE : SPAMF_CHANMSG); if (match_spamfilter(client, text, spamtype, cmd, channel->chname, 0, NULL)) return;