Permalink
Browse files

Fix bug where an empty parameter is generated when input to a tokenst…

…ream ends in a colon
  • Loading branch information...
1 parent aceb2c4 commit a18c7c420359056c5cda782915daadfbf7531673 Jackmcbarn committed Jan 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hashcomp.cpp
View
@@ -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))

0 comments on commit a18c7c4

Please sign in to comment.