diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-02 17:14:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-02 17:14:41 +0000 |
commit | 89adf128523abbb57c2fd7f964115fec01bc00c0 (patch) | |
tree | 52fff4780515cb10c02dcf74acdcbb4692240d39 /src/hashcomp.cpp | |
parent | ede5a089970691ee4a3edad7b6be4fd2504e2a12 (diff) |
Seems to work now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5400 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 4dd9050b4..2acd59f91 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -338,6 +338,7 @@ void irc::modestacker::PushMinus() int irc::modestacker::GetStackedLine(std::deque<std::string> &result) { + int n = 0; result.clear(); result.push_back(adding ? "+" : "-"); @@ -348,8 +349,8 @@ int irc::modestacker::GetStackedLine(std::deque<std::string> &result) result.push_back(sequence[1]); sequence[0].erase(sequence[0].begin()); sequence.erase(sequence.begin() + 1); + n++; } - return result.size(); + return n; } - |