diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hashcomp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index caf93ec1b..b5740d95b 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -251,6 +251,11 @@ const std::string irc::sepstream::GetToken() while (n != tokens.end()) { + /** Skip multi seps, converting "<sep><sep>" into "<sep>" + */ + while ((n+1 != tokens.end()) && (*n == sep) && (*(n+1) == sep)) + n++; + if ((*n == sep) || (n+1 == tokens.end())) { last_starting_position = n+1; |