From 01ad96170c21d0b990b48c535c1c4b3cd5b186e0 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Jun 2007 22:24:10 +0000 Subject: Fixed fencepost git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7316 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hashcomp.cpp') 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 &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()) -- cgit v1.2.3