You open a chat program, choose the nickname Alex and connect to a server. The window is nearly empty. Then you type /join #museum. A few names appear and the window shows a topic: “What was the first thing you saved from the Web?” Someone called Sam says hello.
Alex, Sam and their conversation are fictional. The command is real. It gives us a way into RFC 1459, the document that described the Internet Relay Chat protocol in May 1993.
A room with a name
IRC stands for Internet Relay Chat. The program on your computer is called a client. It talks to a server, and that server may be connected to other servers. A channel is a named conversation. Two people can join the same channel on the same IRC network while connected to different servers.
Alex connects through one server. Sam connects through another. Their programs can show the same conversation because the servers relay the relevant messages across the network. The nickname identifies who is speaking. The channel name tells the software where to send the conversation.
What /join actually sends
The slash tells the client to treat what follows as an instruction. The client sends JOIN #museum to the server, without the slash. The server checks whether Alex can enter. Some channels require an invitation or a key.
If Alex gets in, the server relays the arrival to the channel and sends the client information about the room, including its topic if it has one and a list of nicknames. The protocol describes the exchange. Each chat program decides how to display it. RFC 1459, §4.2.1 — JOIN
Your first message
Alex types “I saved a picture of Saturn.” Because Alex is writing in the channel window, the client addresses the message to #museum. The command is PRIVMSG. Address it to a nickname and it goes to that person. Address it to a channel and it goes to the other people in that channel.
Alex’s server passes the message along where it needs to go. Sam’s client displays it with Alex’s nickname. A moment later, Sam replies: “Was it the one with the rings?” Both clients and both servers could take part because they agreed on what a nickname, a channel and a message meant. RFC 1459, §3.2.2 — Channels · §4.4.1 — PRIVMSG
Read the protocol for yourself
Start with JOIN. Find the command, the channel name and the information the server sends back. Then look at the destination in the PRIVMSG examples. Can you tell which message goes to one person and which goes to a whole channel?
Continue exploring: IRC in the Encyclopedia · The JOIN command in Archive · Explore the Timeline

Leave a Reply
You must be logged in to post a comment.