mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 01:23:12 +02:00
- Oops.. made spamfilter for msgs/notices not working ;p.. fixed.
This commit is contained in:
@@ -305,3 +305,4 @@
|
||||
- Windows: the 'notice' parameter in the usermsg callback was always 0 due some windows/vc
|
||||
weirdness, this also affected spamfilter (so any spamfilters added only at notice
|
||||
and not at msg on windows would not work). Now using the real 'notice' parameter.
|
||||
- Oops.. made spamfilter for msgs/notices not working ;p.. fixed.
|
||||
|
||||
@@ -270,7 +270,7 @@ DLLFUNC int m_message(aClient *cptr, aClient *sptr, int parc, char *parv[], int
|
||||
|
||||
if (MyClient(sptr))
|
||||
{
|
||||
ret = dospamfilter(sptr, text, notice, acptr->name);
|
||||
ret = dospamfilter(sptr, text, (notice ? SPAMF_USERNOTICE : SPAMF_USERMSG), acptr->name);
|
||||
if (ret < 0)
|
||||
return FLUSH_BUFFER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user