Caps block

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

Caps block

Post by Guest » Fri Aug 26, 2005 12:43 pm

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: 1881
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Caps block

Post by Syzop » Fri Aug 26, 2005 3:33 pm

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 » Sat Aug 27, 2005 4:58 pm

Syzop

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

Post Reply