From acf99712e93dced4b07d4bd0ba9f516f48d19322 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 2 Aug 2004 03:16:54 +0000 Subject: [PATCH] - Oops.. made spamfilter for msgs/notices not working ;p.. fixed. --- Changes | 1 + src/modules/m_message.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ac50a2fa8..4aa4f3559 100644 --- a/Changes +++ b/Changes @@ -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. diff --git a/src/modules/m_message.c b/src/modules/m_message.c index 0402dbe99..9fccec8c5 100644 --- a/src/modules/m_message.c +++ b/src/modules/m_message.c @@ -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; }