static const std::string::size_type MAX_CLIENT_MESSAGE_TAG_LENGTH = 4095;
/** The maximum size of server-originated message tags in an outgoing message including the `@`. */
- static const std::string::size_type MAX_SERVER_MESSAGE_TAG_LENGTH = 511;
+ static const std::string::size_type MAX_SERVER_MESSAGE_TAG_LENGTH = 4095;
static void SerializeTags(const ClientProtocol::TagMap& tags, const ClientProtocol::TagSelection& tagwl, std::string& line);
// Work out how long the message can actually be.
size_t maxline = ServerInstance->Config->Limits.MaxLine - start - 2;
if (line[start] == '@')
- maxline += MAX_CLIENT_MESSAGE_TAG_LENGTH + 1;
+ maxline += MAX_CLIENT_MESSAGE_TAG_LENGTH + 1;
irc::tokenstream tokens(line, start, maxline);
ServerInstance->Logs->Log("USERINPUT", LOG_RAWIO, "C[%s] I %s", user->uuid.c_str(), tokens.GetMessage().c_str());