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
This commit is contained in:
brain 2006-02-21 21:49:06 +00:00
parent a7f994a7ba
commit 20c2b0716a

View 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;
{