I am currently coding an Internet Relay Chat client/server implementation. I read the RFC 1459 but some points are still unclear to me.
First let's say we have three users A, B and C. A post a channel message, should I send it back to A, B and C or just B and C ? I mean should the client of A handle their own posting?
And the second point is, I would like to handle the possibility for the user to /join multiple channels. How then could I handle the fact that my user can only post to one channel at a time? The RFC is unclear about it.
Regards, Swann
In the first sense no. Messages are not broadcast, so the user will not receive their own message back.
When sending a message you provide the destination. Whether that's a user or a channel. So PRIVMSG #channel :hello world
will target that message to #channel
. Other users in that room will receive the following:
:juco!~juco@hostname.com PRIVMSG #example :Hello world
This is explained in more details in 4.4.1 Private messages.