]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/hashcomp.cpp
Add support for the IRCv3 account-tag specification.
[user/henk/code/inspircd.git] / src / hashcomp.cpp
index 47c36b91bac176c03ff84124cbbc67d797d1cdb6..8febcbb5f6b08784a3d5d92a0595cec4e80a340c 100644 (file)
@@ -212,7 +212,7 @@ bool irc::tokenstream::GetMiddle(std::string& token)
        size_t separator = message.find(' ', position);
        if (separator == std::string::npos)
        {
-               token.assign(message, position);
+               token.assign(message, position, std::string::npos);
                position = message.length();
                return true;
        }
@@ -234,9 +234,8 @@ bool irc::tokenstream::GetTrailing(std::string& token)
        // If this is true then we have a <trailing> token!
        if (message[position] == ':')
        {
-               token.assign(message, position + 1);
+               token.assign(message, position + 1, std::string::npos);
                position = message.length();
-               ServerInstance->Logs->Log("HASHCOMP", LOG_DEBUG, "TRAILING %s next (none)", token.c_str());
                return true;
        }