diff options
| author | 2011-01-22 14:13:16 -0500 | |
|---|---|---|
| committer | 2011-01-22 14:13:16 -0500 | |
| commit | a18c7c420359056c5cda782915daadfbf7531673 (patch) | |
| tree | 1ea4d0e9ffb1f3aa375e445e6c2a2eac38f30532 | |
| parent | Backport a bit of the backgroundtimer handling from 1.2 to better handle larg... (diff) | |
Fix bug where an empty parameter is generated when input to a tokenstream ends in a colon upstream/insp11
| -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 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)) |
