diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 16:09:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 16:09:51 +0000 |
commit | bf445278f4c97f6fba55f9a6b8c647db9531ebef (patch) | |
tree | 6104ddc3b3282d3f5df7e532c5b462bf47282172 /src | |
parent | f9f61ff60134a00220a360794e302be9bc90c46c (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chanfilter.cpp | 5 |
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) |