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.

bot devide between numbers and letters?

Old posts that have not been replied to for several years.
Locked
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

bot devide between numbers and letters?

Post by misterys »

hi

i ve the following problem:

there is a nick with one letter (m) and 4 numbers (1234)

in other words: m1234!*@*

how can i let my bot know this "nick assembling"?
resp. how can i devide between numbers and letters ??


thx and sorry for my bad english :(
misterys
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Post by Rusher2K »

I Think you need this Script against ClonexS Proxys :

Code: Select all

 bind JOIN - * proxy:join

proc proxy:join {nick ident handle channel} { 
if {[regexp "^~?\[A-Za-z\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]@.*\$" $ident]} { 
putquick "mode $channel +b [maskhost [lindex [split $ident @] 1]]"
newchanban $channel [maskhost [lindex [split $ident @] 1]] Proxy "We don't need Lame ClonesX Proxys" 60
 } 
}
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

Post by misterys »

yeah
thats it :)

thanks just a few modifications and its perfect :D
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Post by Rusher2K »

misterys are you in Qnet ?

When Yes Qry me !

My Nick Rusher2K

Thanks.
User avatar
CrazyCat
Revered One
Posts: 1255
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Rusher wrote: if {[regexp "^~?\[A-Za-z\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]@.*\$" $ident]} {
Stupid question, but can't you make it simpler, as:

Code: Select all

if {[regexp "^~?\[A-Za-z\]\[\\d\]\{4\}@.*\$" $ident]} {
Locked