diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-14 22:24:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-14 22:24:10 +0000 |
commit | 01ad96170c21d0b990b48c535c1c4b3cd5b186e0 (patch) | |
tree | 06e7b04a01d8a357c9617609d5ff060c3455ee0e /src/hashcomp.cpp | |
parent | 4962be6ddf91e0fac6926f90d10b3ca9abb64747 (diff) |
Fixed fencepost
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7316 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 630faba4b..55bad8bf7 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -360,7 +360,7 @@ int irc::modestacker::GetStackedLine(std::deque<std::string> &result, int max_li if (sequence.size() > 1) nextsize = sequence[1].length() + 2; - while (!sequence[0].empty() && (sequence.size() > 1) && (result.size() < MAXMODES+1) && ((size + nextsize) < max_line_size)) + while (!sequence[0].empty() && (sequence.size() > 1) && (result.size() < MAXMODES) && ((size + nextsize) < max_line_size)) { result[0] += *(sequence[0].begin()); if (!sequence[1].empty()) |