Skip to content

Commit

Permalink
Align the text with RFC2812 which has a slightly more relaxed nicknam…
Browse files Browse the repository at this point in the history
…e syntax as RFC1459 and is the most commonly used one. I'm unsure why the modern documentation tries to be so loose and unspecific about this syntax considering it already clearly states "Servers MAY have additional implementation-specific nickname restrictions.".

Should solve ircdocs#203
  • Loading branch information
tommyrot committed Mar 28, 2023
1 parent 9c2a622 commit d4ee752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ A client is anything connecting to a server that is not another server. Each cli

Nicknames are non-empty strings with the following restrictions:

- They MUST NOT contain any of the following characters: space `(' ', 0x20)`, comma `(',', 0x2C)`, asterisk `('*', 0x2A)`, question mark `('?', 0x3F)`, exclamation mark `('!', 0x21)`, at sign `('@', 0x40)`.
- They MUST NOT start with any of the following characters: dollar `('$', 0x24)`, colon `(':', 0x3A)`.
- They MUST NOT contain any of the following characters: space `(' ', 0x20)`, exclamation mark `('!', 0x21)`, quotation mark `('"', 0x22)`, hash `('#', 0x23)`, dollar sign `('$', 0x24)`, percent sign `('%', 0x25)`, ampersand `('&', 0x26)`, apostrophe `(''', 0x27)`, opening bracket `('(', 0x28)`, closing bracket `(')', 0x29)`, asterisk `('*', 0x2A)`, plus sign `('+', 0x2B)`, comma `(',', 0x2C)`, dot `('.', 0x2E)`, forward slash `('/', 0x2F)`, colon `(':', 0x3A)`, semicolon `(';', 0x3B)`, less-than sign `('<', 0x3C)`, equals sign `('=', 0x3D)`, greater-than sign `('>', 0x3E)`, question mark `('?', 0x3F)`, at sign `('@', 0x40)`.
- They MUST NOT start with any of the following characters: hyphen-minus `('-', 0x2D)`, a digit `('0' - '9', 0x30 - 0x39)`.
- They MUST NOT start with a character listed as a [channel type](#channel-types) prefix.
- They SHOULD NOT contain any dot character `('.', 0x2E)`.
- They MUST NOT start with a character listed as a [channel membership prefix](#channel-membership-prefixes), or prefix listed in the IRCv3 [`multi-prefix` Extension](https://ircv3.net/specs/extensions/multi-prefix).

Servers MAY have additional implementation-specific nickname restrictions.

Expand Down

0 comments on commit d4ee752

Please sign in to comment.