PRIVMSG (extension to RFC1459 command)

Sends a message to a channel or user. PRIVMSG is extended in the same way as NOTICE.

Syntax 1 (RFC 1459 defined):

PRIVMSG <target> :<message>

Syntax 2 (IRCX extension):

PRIVMSG <channel> <nickname list> :<message>

Results

Same as defined in RFC1459, but with the additional functionality of sending to a list of nicknames within the context of a channel.

[Note]Editor's Note

This form of PRIVMSG is like the IRCX WHISPER command. As with NOTICE, the IRCX draft is not clear about how this command should function. In order to be compatible with RFC 1459 clients, I believe the recepients receive the PRIVMSG as if it got sent to the entire channel.

Example 3.14. Possible way to handle a "contextual PRIVMSG"

Client: PRIVMSG #Channel Romeo,Juliet :Thou shalt not marry!
Server (to recepients): :Username!Ident@Hostname PRIVMSG #Channel :Thou shalt not marry!

Because the IRCX draft isn't very clear about this command, a server developer could send the PRIVMSG to the recepients with both the channel and nickname in the message. It could also be possible to use the "fallback" that the WHISPER command calls for: send the extended version if the client supports IRCX, otherwise lose the context and send it normally.