review cmodes.rst style

This commit is contained in:
Antoine Beaupré 2017-03-25 11:42:51 -04:00
parent bdfadfcb99
commit 932350e189
No known key found for this signature in database
GPG key ID: 792152527B75921E

View file

@ -5,25 +5,26 @@ Channel modes
------------------- -------------------
Bans take one parameter which can take several forms. The most common Bans take one parameter which can take several forms. The most common
form is ``+b nick!user@host``. The wildcards ``*`` and ``?`` are allowed, matching form is ``+b nick!user@host``. The wildcards ``*`` and ``?`` are
zero-or-more, and exactly-one characters respectively. The masks will be allowed, matching zero-or-more, and exactly-one characters
trimmed to fit the maximum allowable length for the relevant element. respectively. The masks will be trimmed to fit the maximum allowable
Bans are also checked against the IP address, even if it resolved or is length for the relevant element. Bans are also checked against the IP
spoofed. CIDR is supported, like ``*!*@10.0.0.0/8``. This is most useful address, even if it resolved or is spoofed. CIDR is supported, like
with IPv6. Bans are not checked against the real hostname behind any ``*!*@10.0.0.0/8``. This is most useful with IPv6. Bans are not
kind of spoof, except if host mangling is in use (e.g. checked against the real hostname behind any kind of spoof, except if
``extensions/ip_cloaking.so``): if the user's host is mangled, their host mangling is in use (e.g. ``extensions/ip_cloaking.so``): if the
real hostname is checked additionally, and if a user has no spoof but user's host is mangled, their real hostname is checked additionally,
could enable mangling, the mangled form of their hostname is checked and if a user has no spoof but could enable mangling, the mangled form
additionally. Hence, it is not possible to evade bans by toggling host of their hostname is checked additionally. Hence, it is not possible
mangling. to evade bans by toggling host mangling.
The second form (extban) is ``+b $type`` or ``+b $type:data``. type is a single The second form (extban) is ``+b $type`` or ``+b $type:data``. type is
character (case insensitive) indicating the type of match, optionally a single character (case insensitive) indicating the type of match,
preceded by a tilde (``~``) to negate the comparison. data depends on type. optionally preceded by a tilde (``~``) to negate the comparison. data
Each type is loaded as a module. The available types (if any) are listed depends on type. Each type is loaded as a module. The available types
in the EXTBAN token of the 005 (``RPL_ISUPPORT``) numeric. See (if any) are listed in the ``EXTBAN`` token of the 005
``doc/extban.txt`` in the source distribution for more information. (``RPL_ISUPPORT``) numeric. See ``doc/extban.txt`` in the source
distribution for more information.
If no parameter is given, the list of bans is returned. All users can If no parameter is given, the list of bans is returned. All users can
use this form. The plus sign should also be omitted. use this form. The plus sign should also be omitted.
@ -48,19 +49,21 @@ This mode takes one parameter of the same form as bans, which overrides
This can be useful if it is necessary to ban an entire ISP due to This can be useful if it is necessary to ban an entire ISP due to
persistent abuse, but some users from that ISP should still be allowed persistent abuse, but some users from that ISP should still be allowed
in. For example: ``/mode #channel +be *!*@*.example.com *!*someuser@host3.example.com`` in. For example::
/mode #channel +be *!*@*.example.com *!*someuser@host3.example.com
Only channel operators can see ``+e`` changes or request the list. Only channel operators can see ``+e`` changes or request the list.
``+f``, channel forwarding ``+f``, channel forwarding
-------------------------- --------------------------
This mode takes one parameter, the name of a channel (``+f #channel``). If This mode takes one parameter, the name of a channel (``+f
the channel also has the ``+i`` cmode set, and somebody attempts to join #channel``). If the channel also has the ``+i`` cmode set, and
without either being expliticly invited, or having an invex (``+I``), then somebody attempts to join without either being expliticly invited, or
they will instead join the channel named in the mode parameter. The having an invex (``+I``), then they will instead join the channel
client will also be sent a 470 numeric giving the original and target named in the mode parameter. The client will also be sent a 470
channels. numeric giving the original and target channels.
Users are similarly forwarded if the ``+j`` cmode is set and their attempt Users are similarly forwarded if the ``+j`` cmode is set and their attempt
to join is throttled, if ``+l`` is set and there are already too many users to join is throttled, if ``+l`` is set and there are already too many users
@ -82,8 +85,8 @@ channel.
``+g``, allow anybody to invite ``+g``, allow anybody to invite
------------------------------- -------------------------------
When this mode is set, anybody may use the INVITE command on the channel When this mode is set, anybody may use the ``INVITE`` command on the channel
in question. When it is unset, only channel operators may use the INVITE in question. When it is unset, only channel operators may use the ``INVITE``
command. command.
When this mode is set together with ``+i``, ``+j``, ``+l`` or ``+r``, all channel When this mode is set together with ``+i``, ``+j``, ``+l`` or ``+r``, all channel
@ -93,14 +96,14 @@ members can influence who can join.
------------------- -------------------
When this cmode is set, no client can join the channel unless they have When this cmode is set, no client can join the channel unless they have
an invex (``+I``) or are invited with the INVITE command. an invex (``+I``) or are invited with the ``INVITE`` command.
``+I``, invite exception (invex) ``+I``, invite exception (invex)
-------------------------------- --------------------------------
This mode takes one parameter of the same form as bans. Matching clients This mode takes one parameter of the same form as bans. Matching clients
do not need to be invited to join the channel when it is invite-only do not need to be invited to join the channel when it is invite-only
(``+i``). Unlike the INVITE command, this does not override ``+j``, ``+l`` and ``+r``. (``+i``). Unlike the ``INVITE`` command, this does not override ``+j``, ``+l`` and ``+r``.
Only channel operators can see ``+I`` changes or request the list. Only channel operators can see ``+I`` changes or request the list.
@ -119,7 +122,7 @@ join (by racing for the last slot on each server).
------------------------------ ------------------------------
Taking one parameter, when set, this mode requires a user to supply the Taking one parameter, when set, this mode requires a user to supply the
key in order to join the channel: /JOIN #channel key. key in order to join the channel: ``/JOIN #channel key``.
``+l``, channel member limit ``+l``, channel member limit
---------------------------- ----------------------------
@ -174,8 +177,8 @@ manage the channel.
``+p``, paranoid channel ``+p``, paranoid channel
------------------------ ------------------------
When set, the KNOCK command cannot be used on the channel to request an When set, the ``KNOCK`` command cannot be used on the channel to request an
invite, and users will not be shown the channel in WHOIS replies unless invite, and users will not be shown the channel in ``WHOIS`` replies unless
they are on it. Unlike in traditional IRC, ``+p`` and ``+s`` can be set they are on it. Unlike in traditional IRC, ``+p`` and ``+s`` can be set
together. together.
@ -217,8 +220,8 @@ users can still join.
---------------------- ----------------------
When set, this mode prevents the channel from appearing in the output of When set, this mode prevents the channel from appearing in the output of
the LIST, WHO and WHOIS command by users who are not on it. Also, the the ``LIST``, ``WHO`` and ``WHOIS`` command by users who are not on it. Also, the
server will refuse to answer WHO, NAMES, TOPIC and LIST queries from server will refuse to answer ``WHO``, ``NAMES``, ``TOPIC`` and ``LIST`` queries from
users not on the channel. users not on the channel.
``+t``, topic limit ``+t``, topic limit