Update doc/initial.md

This commit is contained in:
Nova Cat 2024-12-28 12:38:14 -08:00
parent 0cc4dc2294
commit 6819355250

View file

@ -12,3 +12,17 @@ When a client connect to a server, the server might output:
What the server does is:
1. Check the client's hostname (domain) via an rDNS lookup of the IP address.
2. Try to connect to the client's [Ident server](https://en.wikipedia.org/wiki/Ident_protocol) (if it has one)
And then most clients will send:
```
↗️ NICK nick
↗️ USER nick 0 * :realname
↗️ CAP LS 302
```
1. Set their nickname, server can show an error before connecting so the client can change the nickname before the connection is established.
2. 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.
>