EDIT: I made some major changes, so be sure to review the following:
The module will keep track of people's last and first to last messages, so it will still catch people who alternate their spam.Gottem wrote: ↑Thu Nov 24, 2016 8:49 pm Kk we good. =]
Example conf:
- Sending TO ulines is now also exempted
- Added the ability to choose between the actions: kill, block, gzline
- Also added the option to show the message when action == block
- Added another trigger for OPER, which checks for repeated "OPER <nick>" messages (it discards the password part)
- Exemption blocks
- Renamed some directives
Code: Select all
repeatprot { triggers { // These are all available triggers: privmsg; ctcp; invite; notice; oper; }; exemptions { *!ham@*; }; // All of these are the default values banmsg "Nice spam m8"; // Rejection message action gline; // Other actions are: block, kill, gzline showblocked 0; // Show a "your message was blocked" thingy to the user (only applicable if action == block obv) tkltime 60; // How long to ban for (if action == g(z)line), can be a "time string" like 60, 1h5m, etc (no unit = seconds) threshold 3; // Max 3 of the same messages/commands/invites/etc timespan 0; // Can also be a time string like tkltime (0 means indefinitely) };
Check our git for the source