From 3f3d3d302899aacf8b49fcc871265c965d1fb0fc Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Aug 2007 17:17:18 +0000 Subject: Fix for irc::sepstream for when there are multiple seperators in a row, do not drop the rest of the line, strip the seperators git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7798 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 "" into "" + */ + while ((n+1 != tokens.end()) && (*n == sep) && (*(n+1) == sep)) + n++; + if ((*n == sep) || (n+1 == tokens.end())) { last_starting_position = n+1; -- cgit v1.2.3