diff options
| author | 2008-12-07 21:50:12 +0000 | |
|---|---|---|
| committer | 2008-12-07 21:50:12 +0000 | |
| commit | 4311f79b4bd9e1d679ec7540037cde008b7f82dd (patch) | |
| tree | cc0b9ae12586f31505b0ffe0ea350c72bfd9b545 /src/modules/m_messageflood.cpp | |
| parent | Patch to allow bindings to all ips on an ipv4 only system where the build is ... (diff) | |
Disallow any messageflood parameter where x < 2 in +f x:y, prevents moronic behaviour like #pokeworld are doing here on chatspike.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10869 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
| -rw-r--r-- | src/modules/m_messageflood.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 1b5612a4a..99cd01613 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -130,7 +130,7 @@ class MsgFlood : public ModeHandler /* Set up the flood parameters for this channel */ int nlines = atoi(lines); int nsecs = atoi(secs); - if ((nlines<1) || (nsecs<1)) + if ((nlines<2) || (nsecs<1)) { source->WriteNumeric(608, "%s %s :Invalid flood parameter",source->nick.c_str(),channel->name.c_str()); parameter.clear(); |
