]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Its true i cant count! :P this one i spotted in testing.
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 21 Feb 2006 21:49:06 +0000 (21:49 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 21 Feb 2006 21:49:06 +0000 (21:49 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3282 e03df62e-2008-0410-955e-edbf42e46eb7

src/mode.cpp

index b2abd0563545d367ed78903d17b4d567d662b0a7..02fdd937d467c8dd5ddba1e1809d1728bd4c31b6 100644 (file)
@@ -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;
 
                {