X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fhashcomp.cpp;h=b3b00248f35f7a8a5c2bf5447d249782d38e0008;hb=f235772cf1781ac9e9b50e1c4c91d59666063436;hp=c7acbb6bea57fe5bc9648300439f1de55185d3c8;hpb=cd712c40e1b352c05e7ae0f72e0a5e84cdf64323;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index c7acbb6be..b3b00248f 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -144,7 +144,7 @@ void nspace::strlower(char *n) #if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED) size_t nspace::hash_compare >::operator()(const irc::string &s) const #else - size_t CoreExport nspace::hash::operator()(const irc::string &s) const + size_t CoreExport irc::hash::operator()(const irc::string &s) const #endif { register size_t t = 0; @@ -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))