Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IRC USER message makes no sense to me

Tags:

irc

First, please tell me if I'm not allowed to ask about this protocol here... It just seemed like the best place. Sorry if I'm wrong.

So according to wikipedia the USER message goes like the following:

USER username hostname servername :realname

What's the difference between hostname and servername? Thanks.

like image 346
pajm Avatar asked Mar 04 '11 22:03

pajm


People also ask

What are the three main parts of an IRC client message?

Each IRC message may consist of up to three main parts: the prefix (OPTIONAL), the command, and the command parameters (maximum of fifteen (15)). The prefix, command, and all parameters are separated by one ASCII space character (0x20) each.

How do I connect to chat on IRC?

Enter the name of the chat room you would like to join or select the chat room(s) from the list and then press Join. Press the Join button to connect to the room or rooms.

How do you know what channels exist on an IRC network?

Channels on a network can be displayed using the IRC command LIST, which lists all currently available channels that do not have the modes +s or +p set, on that particular network. Users can join a channel using the JOIN command, in most clients available as /join #channelname.

How do I connect to IRC service?

You will need to enter some information about yourself in the Connect dialog, select an IRC Server from the servers list, and then click the Connect button to connect to the IRC Server. You will know that you have connected to the IRC Server when you see a Message Of The Day in the mIRC status window.


2 Answers

RFC 1459 states in section 4.1.3:

Note that hostname and servername are normally ignored by the IRC server when the USER command comes from a directly connected client (for security reasons), but they are used in server to server communication.

like image 155
Greg Hewgill Avatar answered Oct 27 '22 22:10

Greg Hewgill


USER command from RFC1459 is modified in RFC2812 which moots your question slightly.

like image 29
carlsb3rg Avatar answered Oct 28 '22 00:10

carlsb3rg