summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_chanfilter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index ecb4e6db3..e19bc0603 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -133,6 +133,11 @@ class ModuleChanFilter : public Module
}
if (spamlist->size() < (unsigned)MaxEntries)
{
+ if (word.length() > 35)
+ {
+ WriteServ(user->fd,"935 %s %s %s :word is too long for censor list",user->nick, chan->name,word.c_str());
+ return -1;
+ }
for (SpamList::iterator i = spamlist->begin(); i != spamlist->end(); i++)
{
if (*i == word)