# Functions
EscapeTagValue takes a value, and returns an escaped message tag value.
MakeMessage provides a simple way to create a new Message.
ParseLine creates and returns a message from the given IRC line.
ParseLineStrict creates and returns an Message from the given IRC line, taking the maximum length into account and truncating the message as appropriate.
ParseNUH parses a NUH source of an IRC message into its constituent parts; name (nickname or server name), username, and hostname.
TruncateUTF8Safe truncates a message, respecting UTF8 boundaries.
UnescapeTagValue takes an escaped message tag value, and returns the raw value.
# Constants
"Clients MUST NOT send messages with tag data exceeding 4094 bytes, this includes tags with or without the client-only prefix.".
"Servers MUST NOT add tag data exceeding 4094 bytes to messages.".
MaxlenTags - ('@' + ' ').
"The size limit for message tags is 8191 bytes, including the leading '@' (0x40) and trailing space ' ' (0x20) characters.".
'@' + MaxlenClientTagData + ' ' this is the analogue of MaxlenTags when the source of the message is a client.
# Variables
ErrorBadParam indicates that an IRC message could not be serialized because its parameters violated the syntactic constraints on IRC parameters: non-final parameters cannot be empty, contain a space, or start with `:`.
ErrorBodyTooLong indicates that the message body exceeded the specified length limit (typically 512 bytes).
ErrorCommandMissing indicates that an IRC message was invalid because it lacked a command.
ErrorInvalidTagContent indicates that a tag name or value was invalid.
ErrorLineContainsBadChar indicates that the line contained invalid characters.
ErrorLineIsEmpty indicates that the given IRC line was empty.
ErrorTagsTooLong indicates that the message exceeded the maximum tag length (the specified response on the server side is 417 ERR_INPUTTOOLONG).
No description provided by the author