Note: If you would like to improve Tennu, adding message extensions is easy.
- prefix - The prefix is either a hostmask of the format
nickname!username@hostname, or the server you are connected to.
- command - Message command type. For example, ‘privmsg’ or ‘nick’.
- params - Array of sent parameters.
- tags - IRC3 tags sent with message.
Messages With Hostmask Prefixes
If the message has a hostmask as a prefix, then the
hostmask property will
be set to an object with three properties:
Otherwise, this property will be null.
Most messages have a
For messages that have a hostmask as a prefix, the
nickname is an alias to
Messages that happen in a specific channel have a
The channel is normalized to lower case.
Numerics that are listed on this article have this property. It is the name given to the numeric by alien.net.au. These messages are also emitted by the value of their reply name.
PRIVMSG and NOTICE
- isQuery - Whether or not the message was sent directly to you, or to a channel.
- channel - In the case of a query, the channel is the nickname of the user who sent the message.
- message - The message, stripped of mIRC color codes and trimmed.
- No additional properties.
PART and QUIT
- reason - The user-given reason for the action.
- kicked - The user who was kicked.
- kicker - The user who performed the kick.
- old - The nickname the user was using.
- new - The nickname the user is now using.
- modestring - Unparsed mode changes without arguments.
- args - The arguments to modes that have arguments.
- modes - [Unstable] Semi-correct parsing of modes.
- replyname - RPL_WHOISREGNICK
- replyname - RPL_WHOISHELPOP
- replyname - RPL_WHOISUSER
- nickname - Nickname of user
- username - Username of user
- hostname - Hostname of user
- realname - Realname (or gecos) of user
- hostmask - Hostmask of user
Note: The prefix is the server you are on.
- replyname - RPL_WHOISSERVER
- server - Server that the user is on.
- serverInfo - Arbitrary information about the server.
- replyname - RPL_WHOISOPERATOR
- nickname - Nickname of user
- permissions - Arbitrary IRC OP permissions of user.
- replyname - RPL_WHOISIDLE
- seconds - Integral number of seconds since user went idle.
- since - Unix timestamp of last message sent by user
- replyname - RPL_ENDOFWHOIS
- replyname - RPL_WHOISCHANNELS
Note: There may eventually be a channels property. For now, you can get them at message.params. They have a format of:
<user power sigil>?<channel type sigil><channel name>
- replyname - RPL_WHOISLOGGEDIN
- identifiedas - Services nickname the user is identified to.
- replyname - RPL_TOPIC
- topic - The topic.
- replyname - RPL_TOPICWHOTIME
- who - Nickname of user who last set topic.
- timestamp - Unix timestamp of when the topic was last set.
- replyname - RPL_WHOISBOT
- replyname = RPL_NAMREPLY (not a typo)
- nicknames - [Unstable] Partial list of nicknames the user is in. May have prefix.
These get sent in batches. We do not currently use any IRCv3 extensions, so the prefix only shows the users highest mode. This will eventually change to show all modes and the whole hostmask.
- replyname - RPL_ENDOFNAMES
- replyname - RPL_WHOISHOST
- hostmask - Unparsed hostmask of the user.
- ip - Unparsed IP of the user.
- replyname - ERR_NOSUCHNICK
- replyname - ERR_NOSUCHCHANNEL;
- replyname - ERR_TOOMANYCHANNELS;
- replyname - ERR_UNKNOWNCOMMAND;
- unknownCommand - Command name that the client tried to perform.
- replyname - ERR_UNAVAILRESOURCE
- channel - Resource that is unavailable.
- nickname - Resource that is unavailable.
- resource - Resource that is unavailable.
In the future, only one of
nickname will be set.
- replyname - ERR_NEEDMOREPARAMS;
- command - Command sent with insuffient parameters.
- replyname - ERR_CHANNELISFULL;
- replyname - ERR_INVITEONLYCHAN;
- replyname - ERR_BANNEDFROMCHAN;
- replyname - ERR_BADCHANNELKEY;
- replyname - ERR_NEEDREGGEDNICK;
- replyname - ERR_SECUREONLYCHAN;
- replyname - ERR_OPERONLY;
- replyname - RPL_WHOISSECURE