mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 22:13:11 +02:00
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').
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user