The "repeat" Module


This module adds channel mode E (repeat) which helps protect against spammers which spam the same message repeatedly.


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

<module name="repeat">


The <repeat> tag defines settings about how the repeat module should behave. This tag can only be defined once.

Name Type Default Value Description
maxbacklog Number 20 The maximum size that can be specified for backlog. Set to 0 to disable multiline matching.
maxdistance Number 50 The maximum percentage of difference between two lines we'll allow to match. Set to 0 to disable edit-distance matching.
maxlines Number 20 The maximum lines of backlog to match against.
maxtime Duration 0 The maximum period of time a user can set. Set to 0 to allow any period.
size Number 512 The maximum number of characters to check for, can be used to truncate messages before they are checked, resulting in less CPU usage.
Example Usage
<repeat maxbacklog="20"

Channel Modes

Name Character Type Parameter Syntax Description
repeat E Parameter [~|*]<lines>:<sec>[:<difference>][:<backlog>] Configures the messages that should be considered a repeat. If prefixed with ~ the messages are blocked. If prefixed with * then offending users are banned. If not prefixed then offending users are kicked.
Example Usage

Blocks more than two repeated messages in five seconds:

/MODE #channel +E 2:5


Name Description
repeat Allows exempted users to send repetitive messages at a higher rate than channel mode E (repeat) allows.