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.
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.
USER command from RFC1459 is modified in RFC2812 which moots your question slightly.
The "hostname" is that of the client.
来源:https://stackoverflow.com/questions/5199808/irc-user-message-makes-no-sense-to-me