mIRC Home    About    Download    Register    News    Help

Print Thread
#32932 29/06/03 01:51 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:JOIN:#:{
var %i 1
var %cap 0
while (%i <= $len($nick)) {
if ($isalpha($isupper($mid($nick,%i,1)))) {
inc %cap
}
inc %i
}
if (%cap >= 8) {
mode # +b $nick
kick # $nick
}
}
that doesnt work, as you may have guessed its supposed to kick someone if they have more than 8 capitals in there name but $isupper seems to include numbers as well, so i thought if i used $isalpha it would just be ABCDEFG etc, but it doesnt work at all frown
any ideas? thanx in advance


new username: tidy_trax
#32933 29/06/03 03:05 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
if ($isupper($mid($nick,%i,1)) && $mid($nick,%i,1) isalpha) {

also, u could use $regex
$regex($nick,/[A-Z]/g) will return the number of caps in the nick


#32934 29/06/03 03:26 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
thanks smile


new username: tidy_trax

Link Copied to Clipboard