From 6819355250853e7c33affa8e92d0a781bca16ee9 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 28 Dec 2024 12:38:14 -0800 Subject: [PATCH] Update doc/initial.md --- doc/initial.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/initial.md b/doc/initial.md index f6b5174..75b40fb 100644 --- a/doc/initial.md +++ b/doc/initial.md @@ -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. +> \ No newline at end of file