Add doc/prefixing.md

This commit is contained in:
Nova Cat 2024-12-28 12:44:53 -08:00
parent deacaba010
commit 11cecc6ed0

16
doc/prefixing.md Normal file
View file

@ -0,0 +1,16 @@
[⬅️ Back to `index`](index.md)
# Colon prefixing
In some commands (like PRIVMSG, TOPIC, USER, NOTICE, etc), the client needs to add a colon before the content (NOT after the command)
❌ Your client shouldn't do this:
```
↗️ PRIVMSG foo this is a very cool message
🔀 nick!ident@host PRIVMSG foo :this
```
✅ Here's what it should do:
```
↗️ PRIVMSG foo :this is a very cool message
🔀 nick!ident@host PRIVMSG foo :this is a very cool message
```