blocking text which has no spaces

These are old archives. They are kept for historic purposes only.
Post Reply
LetSDie
Posts: 3
Joined: Thu Aug 18, 2005 9:14 am

blocking text which has no spaces

Post by LetSDie »

ok here is the problem
i am using this code for blocking messages if it has no spaces between words ;

Code: Select all

spamfilter { 
regex "^[A-Z]{12}.+$"; 
target { private; channel; }; 
action block; 
reason "14Bosluk kullanmadan cok uzun yazi yazdiniz..1 Boşluk Kullanmadan Kullana Bileceğiniz Karakter sayısı 12dir.4HoSSohbetler"; 
}; 
but this code doesn't blocks text like these;

Code: Select all

<ekeke> Hangi-anası-nı-zıktıım-bana-Söwüosa-Nick-Yazsın-Anaaaaaaan-@mına-Korum-Orspu-cucuu :* :* baban Hangi-anası-nı-zıktıım-bana-Söwüosa-Nick-Yazsın-Anaaaaaaan-@mına-Korum-Orspu-cucuu :* :* baban 
what can i do?
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

Try this instead:

^[\S]{12}.+$

[\S] = anything other then a space

http://www.vulnscan.org/UnrealIRCd/unre ... egexassert
JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

Post by JanisB »

<JanisB> Congratulations!
16 symbols, i've got banned :<
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Because it's [^\s] you want

Code: Select all

[^\s]{12}
Don't need the ^/$ or the .+, unless you mean for only the first word to be matched, BUT it will block ANY linen with a word more than 12 characters.

IMO, this would be a dumb spamfilter... You need to find soemthing a little more specific
Post Reply