The "anticaps" Module (v4)
Description
This module adds channel mode B
(anticaps) which allows channels to block messages which are excessively capitalised.
Configuration
To load this module use the following <module>
tag:
<module name="anticaps">
<anticaps>
The <anticaps>
tag defines settings about how the anticaps module should behave. This tag can only be defined once.
Name | Type | Default Value | Description |
---|---|---|---|
message | Text | Your message exceeded the %percent%%% upper case character threshold for %channel% | The message to use when punishing users that hit the upper case character threshold. |
lowercase | Text | abcdefghijklmnopqrstuvwxyz | A list of characters to treat as lower case letters. |
uppercase | Text | ABCDEFGHIJKLMNOPQRSTUVWXYZ | A list of characters to treat as upper case letters. |
The message field can contain any of the following template variables:
Variable | Description |
---|---|
%channel% | The name of the channel the mode is set on. |
%lower% | The number of lower case characters. |
%minlen% | The minimum length from the mode value. |
%percent% | The percentage from the mode value. |
%punctuation% | The number of punctuation (non upper or lower) characters. |
%upper% | The number of upper case characters. |
Example Usage
<anticaps message="Your message exceeded the %percent%%% upper case character threshold for %channel%"
lowercase="abcdefghijklmnopqrstuvwxyz"
uppercase="ABCDEFGHIJKLMNOPQRSTUVWXYZ">
Channel Modes
Name | Character | Type | Parameter Syntax | Usable By | Description |
---|---|---|---|---|---|
anticaps | B | Parameter | {ban|block|mute|kick|kickban}:<minlen>:<percent> | Channel operators | Enables blocking excessively capitalised messages. |
Example Usage
Kicks users who send a message which is longer than five characters and is more than 75% capital letters:
/MODE #channel +B kick:5:75
Exemptions
Name | Description |
---|---|
anticaps | Allows exempted users to send overly capitalised messages. |