Modules/2.0/blockcaps

From the makers of InspIRCd.
Jump to: navigation, search

blockcaps module (2.0 version)

Current Future
2.0 Documentation 3.0 Documentation
Return to the 2.0 Module List
Description
The CAPS blocker module blocks CAPS messages to channels with mode +B based on the config options described below.
Configuration Tags
 
  • <blockcaps:percent> - This defines how many percent CAPS must be present in the text the user sends before it's blocked. A setting of 85 will block AAAAAAAa (87 percent) but not AAAAa (80 percent)
  • <blockcaps:minlen> - The minimum length a line of text must be before CAPS-checking is done. A setting of 5 will block all lines of text longer than or equal to 5 chars meeting the percent of CAPS specified above.
  • <blockcaps:capsmap> - A list of chars to be considered CAPS, this way you can add CAPS for your language. Also you can add things like ! and space to further lock down on caps usage.
<blockcaps percent="50" 
           minlen="5" 
           capsmap="ABCDEFGHIJKLMNOPQRSTUVWXYZ! ">
Modes
Channel mode +B -- Set this mode to filter CAPS messages from your channel according to the settings above.
Extended Bans (Extbans)
Extended Ban B:[email protected] -- Set this on a [email protected] mask and it will block caps for that user (or users).
Commands
This module adds no extra commands.
Special Notes
The actual numeric sent when messages are blocked is the numeric 404. This is the same numeric used for 'Cannot send to this channel' although the string is different so many clients will display it correctly, the ones that do not will still react in an appropriate manner.