diff options
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; } - |