28 lines
No EOL
946 B
Markdown
28 lines
No EOL
946 B
Markdown
[⬅️ Back to `index`](index.md)
|
|
|
|
# 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:
|
|
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.
|
|
> |