/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2016 Attila Molnar <attilamolnar@hush.com>
+ * Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2018 Attila Molnar <attilamolnar@hush.com>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public
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);
while (ss.GetToken(token))
{
// Two or more tags with the same key must not be sent, but if a client violates that we accept
- // the first occurence of duplicate tags and ignore all later occurences.
+ // the first occurrence of duplicate tags and ignore all later occurrences.
//
// Another option is to reject the message entirely but there is no standard way of doing that.
const std::string::size_type p = token.find('=');