summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-21 21:49:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-21 21:49:06 +0000
commit20c2b0716a66bcd0c1ae5805aa54d600ebc1306a (patch)
tree0f50a36e5340a56e953ed7d9aa03babd55be0da7 /src
parenta7f994a7ba6417041a5f865ae8ba1e22ebada66b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
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;
{