Add doc/formatting.md
This commit is contained in:
parent
f901e81ed9
commit
bfe4e3749b
1 changed files with 26 additions and 0 deletions
26
doc/formatting.md
Normal file
26
doc/formatting.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
[⬅️ Back to `index`](index.md)
|
||||||
|
|
||||||
|
# Formatting of socket
|
||||||
|
|
||||||
|
IRC is quite a hassle to understand, so the first thing to know about the protocol is the **socket** and **server/client**.
|
||||||
|
|
||||||
|
TLDR:
|
||||||
|
```
|
||||||
|
↗️ PRIVMSG target :content
|
||||||
|
🔀 :nick!ident@host PRIVMSG target :content
|
||||||
|
^ Replace nick, ident, host, & target with the respective values described.
|
||||||
|
↗️ COMMAND arg :content
|
||||||
|
↙️ :server RPL nick data :content
|
||||||
|
^ Replace nick with the nickname of the current connection.
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
> [!CAUTION]
|
||||||
|
> If the command has content, the colon MUST be included, and is at the beginning of the content, not the end of the command/args.
|
||||||
|
> ```
|
||||||
|
> ↗️ COMMAND: content
|
||||||
|
> ↙️ :server 421 nick COMMAND: :Unknown command
|
||||||
|
> ^ Replace nick with the nickname of the current connection.
|
||||||
|
> ```
|
||||||
|
> For more info on 421, see [Not Found](notfound.md)
|
Loading…
Reference in a new issue