The "censor" Module (v3)

This module has been moved to inspircd-contrib in the next major version of InspIRCd.

You should consider using the filter module instead.

Description

This module allows the server administrator to define inappropriate phrases that are not allowed to be used in private or channel messages.

Configuration

To load this module use the following <module> tag:

<module name="censor">

<badword>

The <badword> tag defines an inappropriate phrase. This tag can be defined as many times as required.

Name Type Default Value Description
text Text None Required! A phrase to match within a message.
replace Text None If defined then a replacement phrase to replace the matched phrase with instead of blocking the message.
Example Usage

Replaces the phrase "wibble" with "wobble":

<badword text="wibble"
         replace="wobble">

Prevents users from saying the phrase "fluffy capybara":

<badword text="fluffy capybara">

Channel Modes

Name Character Type Parameter Syntax Usable By Description
censor G Switch None Channel operators Enables censoring messages sent to the channel.

User Modes

Name Character Type Parameter Syntax Usable By Description
u_censor G Switch None Anyone Enables censoring messages sent to the user.

Exemptions

Name Description
censor Allows exempted users to send messages that contain censored phrases.

Special Notes

The censor module does not support any kind of advanced (glob, regex, etc) matching or punishment other than message blocking. If you need that you should use the filter module instead.

You should take care to avoid the Scunthorpe problem when adding badwords.