From bf445278f4c97f6fba55f9a6b8c647db9531ebef Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Mar 2006 16:09:51 +0000 Subject: Deny +g words >35 chars to prevent having massive words that some users can remove while others cant git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3400 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanfilter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) -- cgit v1.2.3