summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
{