egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drone idents

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
DarkDeviL
Voice


Joined: 03 Jul 2005
Posts: 10
Location: Denmark

PostPosted: Mon Dec 26, 2005 8:07 am    Post subject: Drone idents Reply with quote

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? Surprised

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. Smile

regexp {[A-Z][0-9]} matches just if it's abcd, ..etc. Surprised
_________________
DarkDeviL.
E-mail: append '@staynet.org' to 'darkdevil'.
WWW: www.DarkDeviL.dk
IRC: #DarkDeviL, at irc.staynet.org
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Dec 26, 2005 8:41 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Dec 26, 2005 9:22 am    Post subject: Reply with quote

Code:
regexp {^[A-z][0-9]{3}} $ident

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber