IRC-Documentation/doc/prefixing.md

27 lines
721 B
Markdown
Raw Normal View History

2024-12-28 12:44:53 -08:00
[⬅️ 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
```
2024-12-28 12:50:13 -08:00
The server will only detect the first word
❌ Your client shouldn't do this either:
```
↗️ PRIVMSG foo: this is a very cool message
↙️ :server 401 nick foo: :No such nick/channel
```
The server will think that the nickname ends with a colon.
2024-12-28 12:44:53 -08:00
✅ 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
```