From e2b89c905400df260dae081e4fb0c1e9220777bf Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 22 Oct 2006 20:26:20 +0000 Subject: More stringently fit the RFC1459 BNF diagrams git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5528 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/hashcomp.cpp') 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 :, -- cgit v1.2.3