% [darko@blah darko]$ tclsh
% set nick A---NoSpam
A---NoSpam
% regexp -nocase {[^a,e,i,o,u,y]{5,}} $nick
0
%
Guess that explains it. There is no problem with your regexp.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
Thx for debugging that ... however the bot was banning the ip of the nick A---NoSpam as soon as it joined.
When I removed the code I showed you from my eggy, it stopped banning the nick.
That's what puzzles me!
There is a ban code but I took it out.
Anyway, it's the same. With the code I posted the bot kicks the nick
A---NoSpam eventhough I unloaded all other tcl files and only kept this one
Could it be that the character "-" denotes some sort of special meaning ?
And why did you take out the ban code from your posting? You should post, and i cannot stress this enough, *THE FULL ORIGINAL* version of the script. Some tiny details often cause problems but easily get overloked.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
What I need this code to do is
1- detect nicks having 5 or more successive consonants (i.e. agubnftrd)
2- the successive consonants should be different (i.e. it should not react on nicks such as "afojjjjjj")
3- the nick should only contain letters (i.e. it should not react on nicks such as "drummer21")