From 4311f79b4bd9e1d679ec7540037cde008b7f82dd Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 7 Dec 2008 21:50:12 +0000 Subject: 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 --- src/modules/m_messageflood.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3