| Tip of the day: Log files can use JSON logging. You can also send the JSON data to IRCOps on IRC. The JSON is machine readable and contains lots of details about every log event. |
Translations:Security/52/en
Jump to navigation
Jump to search
Instead of forcing +D or +R you can also use set::restrict-commands to set your own rules (this affects both PRIVMSG and NOTICE, hence two blocks):
set {
restrict-commands {
private-message {
except { identified yes; webirc yes; reputation-score 24; }
}
private-notice {
except { identified yes; webirc yes; reputation-score 24; }
}
}
}
The above example would disable private messaging, except allow it to any of the following groups:
- people who are identified to Services
- people who use a WebIRC gateway
- people who use an IP that has regularly visited this server before (
24here means 24*5=120 minutes of connect time somewhere in the past week/month). Naturally you can use a lower or higher number here.