From a18c7c420359056c5cda782915daadfbf7531673 Mon Sep 17 00:00:00 2001 From: Jackmcbarn Date: Sat, 22 Jan 2011 14:13:16 -0500 Subject: [PATCH] Fix bug where an empty parameter is generated when input to a tokenstream ends in a colon --- src/hashcomp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 628584f9a..1712867cf 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -199,7 +199,7 @@ bool irc::tokenstream::GetToken(std::string &token) /* If we find a space, or end of string, this is the end of a token. */ last_starting_position = n+1; - last_pushed = true; + last_pushed = *n == ' '; std::string strip(lsp, n+1 == tokens.end() ? n+1 : n++); while ((strip.length()) && (strip.find_last_of(' ') == strip.length() - 1))