Support all allowed channel prefixes

RFC 2812 specifies in §1.3 that “Channels names are strings (beginning
with a '&', '#', '+' or '!' character) of length up to fifty (50)
characters.”

We previously only allowed the first two prefix characters, or any other
one if the server overrides the list with ISUPPORT.
This commit is contained in:
Link Mauve authored and Link Mauve committed 2025-07-29 16:04:36 +02:00
1 parent e4d32f9392
commit 7cd4e06f84
6 files changed
+13 -12

No files matched your search

+3 -2
View File
@@ -41,8 +41,9 @@ IRC channels and IRC users have a local part formed like this:
``name`` can be a channel name or an user nickname. The distinction between
the two is based on the first character: by default, if the name starts with
``'#'`` or ``'&'`` (but this can be overridden by the server, using the
ISUPPORT extension) then it’s a channel name, otherwise this is a nickname.
``'&'``, ``'#'``, ``'+'`` or ``'!'`` (but this can be overridden by the server,
using the ISUPPORT extension) then it’s a channel name, otherwise this is a
nickname.
There is two ways to address an IRC user, using a local part like this:
``nickname`` % ``irc_server`` or by using the in-room address of the