summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-22 20:26:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-22 20:26:20 +0000
commite2b89c905400df260dae081e4fb0c1e9220777bf (patch)
tree49050471684caa587eb5e0af67b8238f0ceba1fb /src
parent042c6efdb6b7a6e0ee9e1b45961acd6ef9042128 (diff)
More stringently fit the RFC1459 BNF diagrams
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5528 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/hashcomp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 0908e41b5..e00494041 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -217,6 +217,11 @@ const std::string irc::tokenstream::GetToken()
while (n != tokens.end())
{
+ /** Skip multi space, converting " " into " "
+ */
+ while ((n+1 != tokens.end()) && (*n == ' ') && (*(n+1) == ' '))
+ n++;
+
if ((last_pushed) && (*n == ':'))
{
/* If we find a token thats not the first and starts with :,