1,016 B
1,016 B
Initial connection
When a client connect to a server, the server might output:
↙️ :server NOTICE * :Checking Ident
↙️ :server NOTICE * :Looking up your hostname...
↙️ :server NOTICE * :Couldn't find your hostname
↙️ :server NOTICE * :No Ident response
What the server does is:
- Check the client's hostname (domain) via an rDNS lookup of the IP address.
- Try to connect to the client's Ident server (if it has one)
And then most clients will send:
↗️ NICK nick
↗️ USER nick 0 * :realname
↗️ CAP LS 302
- Set their nickname, server can show an error before connecting so the client can change the nickname before the connection is established.
- Set their username, modes (mostly unused by the IRCd), and real name
Caution
Since the realname can have spaces in it, it must be prefixed with a colon.
For more info on colon prefixes, see Colon Prefixing