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:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user