From 20c2b0716a66bcd0c1ae5805aa54d600ebc1306a Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 21 Feb 2006 21:49:06 +0000 Subject: Its true i cant count! :P this one i spotted in testing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3282 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mode.cpp b/src/mode.cpp index b2abd0563..02fdd937d 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -592,7 +592,7 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int /* If we have more than MAXMODES changes in one line, * drop all after the MAXMODES */ - if (pc > MAXMODES) + if (pc > MAXMODES-1) break; { -- cgit v1.2.3