Caps block

These are old archives. They are kept for historic purposes only.
Post Reply
Guest

Caps block

Post by Guest »

I've treid to block users from sending msg's with caps this way

spamfilter {
regex "[A-Z]{20}";
target { channel; };
action block;
reason "Drop Your Caps!";
};

but it blocks also words with letters more than 20 and normal msg's

How can i block Caps letters only? Thx :)
Syzop
UnrealIRCd head coder
Posts: 1980
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Caps block

Post by Syzop »

You can use (?-i) to make it case sensitive:

Code: Select all

regex "(?-i)[A-Z]{20}";
but probably something like this would be better (include space):

Code: Select all

regex "(?-i)[A-Z ]{20}";
Or even include digits and other stuff... (punctuation) ?

Perhaps someone else has some great suggestions :p
Guest

Caps Block

Post by Guest »

Syzop

There is no need for any new suggestions. The code is working fine...
Thx alote
Post Reply