From 0f2ca5f1ebc1a086724528a5ac95c7c8a7c6f35f Mon Sep 17 00:00:00 2001 From: Jackmcbarn Date: Sat, 22 Jan 2011 14:12:44 -0500 Subject: 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(-) (limited to 'src') diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index c7acbb6be..0ef8d025f 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -255,7 +255,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)) -- cgit v1.2.3