This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Drone idents

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
DarkDeviL
Voice
Posts: 10
Joined: Sun Jul 03, 2005 4:29 pm
Location: Denmark
Contact:

Drone idents

Post by DarkDeviL »

Hey...

In my channel, I use a autovoice script I made, just a simple one, like everyone can make it...

Now, there's a problem - typical "drones", or "flood clones", or whatever. Those with idents similar to: 's691', 'k392', ...etc.

Short said, one letter - following by three digits. How do I check for those in the idents when the clients join, and determinate that they should not be voiced? :o

Its mostly the stuff about how to check if the first one is a letter, and the three following is digits.

I hope anyone can help how to do the checks. :-)

regexp {[A-Z][0-9]} matches just if it's abcd, ..etc. :o
DarkDeviL.
E-mail: append '@staynet.org' to 'darkdevil'.
WWW: www.DarkDeviL.dk
IRC: #DarkDeviL, at irc.staynet.org
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

SEARCH the forum using keyword 'drone'; it's been done to death.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

regexp {^[A-z][0-9]{3}} $ident
Post Reply