Jul 10, 2001, 2:00 PM
Post #4 of 9
In IRC (according to the specs), there is only one command for sending a message: PRIVMSG. The client sends PRIVMSG, followed by a list of recipients, followed by a colon ":", followed by the message terminated by a CR, LF, or CRLF. The way the server knows whether it's a private message or a channel message is by the "#" sign as you know. #perl is a channel, so doing
would send the message to the channel perl which
$conn->privmsg("#perl", "Hello all");
would send a private message to the user with nick abstracts.
$conn->privmsg("abstracts", "Hello Aziz");
So, the command is the same whether it's for a private message or a channel message.
Did I answer your question?
Hope this helps,,,