Module const_irc_message_parser::command
source · Expand description
Method for parsing and extracting a Command
.
§Purpose
Command
is part of the IRC Message Protocol.
It must never be empty.
The Command
occurs after the Source
and before the Parameters
.
Since both Tags
and Source
are optional it is possible for Command
to be the first component in an IrcMsg
.
It can either be a Named
or a Numeric
command.
A Numeric
is a 3 digit string representing a reply or an error to a Named
command.
Some Named
commands are only available after successful capability negotiation.
For such commands an IRC server must never send them to an IRC client if the client doesn’t indicate support
through the CAP
command.
Some commands do not require any Parameters
but most do.
The amount of Parameters
and what they mean depends on the Command
.