diff options
author | Jackmcbarn <jackmcbarn@jackmcbarn.no-ip.org> | 2011-01-22 14:12:44 -0500 |
---|---|---|
committer | Jackmcbarn <jackmcbarn@jackmcbarn.no-ip.org> | 2011-01-22 14:12:44 -0500 |
commit | 0f2ca5f1ebc1a086724528a5ac95c7c8a7c6f35f (patch) | |
tree | 8a615a32d07b403391b2d07f456907ffadf55f82 /src/hashcomp.cpp | |
parent | 2aeca99c6381ae7c8a2b98310accd96ad0d7f369 (diff) |
Fix bug where an empty parameter is generated when input to a tokenstream ends in a colon
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |