aboutsummaryrefslogtreecommitdiffstats
path: root/src/hashcomp.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-08-23 17:17:41 +0000
committerGravatar brain2007-08-23 17:17:41 +0000
commitcee0f19b137104cd670028d30fedfebbf5dd1797 (patch)
treef6732409a687a5ea853cfff699f6593564bd6064 /src/hashcomp.cpp
parentWe name this release Esrom, its a danish cheese, to congratulate peavey on th... (diff)
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/branches/1_1_stable@7799 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r--src/hashcomp.cpp5
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;