Im trying to make a script that checks the userid of those joining my channel, but i cant make it work. perhaps one of you can help me:

on *:JOIN:#:/who $nick

raw 352:*:{
set %ID $3
set %IDnick $6
if ( ~ isin %ID ) && ( $len( %ID ) > 8 ) && ( %ID isalpha ) && ( $islower(%ID) == $true ) {
ping %IDnick
echo 12 -s %IDnick has this userid : 4 %ID
}
halt
}
raw 315:*: /halt

any clues about why doesnt it work?