Forbidden patterns plugin

Current version: 0.4

Antispam protection for chat messages and user info checker based on PCRE pattern matching.

Configuration

Open plugins.conf in your favourite text editor and add this line:

plugin /usr/lib/uhub/mod_patterns.so "file=/etc/uhub/patterns.db"

Parameters:

ParameterDescription
filePath/filename for the database containing rules

Hub commands

CommandDescription
!patternadd <type> <min credentials>
<max credentials> <pattern>
Add forbidden pattern. Range of credentials between min and max are protected (inclusive).
!patterndel <pattern id>Delete forbidden pattern.
!patternlistList forbidden patterns.
!patterntest <pattern id> <test string>List forbidden patterns.
!patternexadd <pattern id> <min credentials>
<max credentials> <exception pattern>
Add exception to a forbidden pattern. Range of credentials between min and max are affected (inclusive).
!patternexdel <exception id>Delete pattern exception.
!patternexlistList pattern exceptions.