Luminous wrote:In the random drone protection.. how is that triggered? I thought that was when people came with nicks like hhhhhh, but my bot doesn't kick those people. Not that all of the mare drones, they usually aren;t; just newbs who don't know what the chat box on my forum is for, but still, how does that work exactly? Does it need random ident as well?
Here's the code that checks for those "drone" nicknames/idents
Code: Select all
if {[regexp {^[a-z]{4,}![a-z]{4,}$} $nick!$id]} {
if {(![string match {*[aeiou]*} $nick]) || ([regexp {^[^aeiou]{4}|[aeiou]{4}|q[^ua]|[^aeioux]x[^aeiouyx]|[^aeiouy]{5}} $nick dronm] && ![regexp {a{3}|e{3}|i{3}|o{3}|u{3}} $nick])} {
It must have at least four consecutive lower-case alphabets in each of the nickname and the ident.
If there are no vowels at all in the nickname, it's a drone.
OR
[If there are four consecutive non-vowels, or four consecutive vowels, or "q" followed by a character other than "u" or "a", or "x" between two non-vowels (except for "x" itself and can be followed by "y"), or five consecutive non-vowels (except y)] + [no three consecutive identical vowels] ==> drone.
I hope that's clear enough.