clients and bots are unable to detect a given IRCd's method of quieting/muting users. exposing instructions on how to apply and list these will be of great benefit for making quiets easier for those not overinformed about IRC's technical details.
this will also trivialise applying and selectively removing quiets for channel service bots; they can apply and remove specific quiets and can list all active quiets.
this is written to cover the two dominating methods of quieting users; +q
list mode and extbans. charybdis derivatives use the former, most others use the latter.
to cover both, the token will express both a mode (will typically be q
or b
) and expose a prefix for use with extbans.
we also express the numerics used to list active quiets. this is because charybdis-style and extban-style quiets will use different numerics; extban-style quiet listing just involves listing all bans and picking which start with the expressed prefix.
QUIET=<mode>[,[prefix][,<numeric-list>,<numeric-end>]]
[prefix]
defaults to empty string, numeric-list
defaults to RPL_BANLIST
(367
), numeric-end
defaults to RPL_ENDOFBANLIST
(368
)
QUIET=q,,728,729
and the numeric format is:
:adams.freenode.net 728 jess|test #bitbottest q asd!*@* jess!jess@bitbot/dev/jess 1579688462
:adams.freenode.net 729 jess|test #bitbottest q :End of Channel Quiet List
QUIET=b,m:
QUIET=b,~q: