You need the /'s in the regex.
on *:SNOTICE:*Client connecting*:{
if ($regex($5,/~?[a-z]\d{3,4}@.*/i)) kill $4 proxy clone
}
Also, I'm not sure if you are using the correct numbers for $4 and $5. The syntax im used to seeing is this:
NOTICE -- Client Connecting: nickname
ident@host.comIn the above case, the correct numbers would be $regex($6,...) and kill $5... . Your server notices may be different though. You could try adding this line to see if you have the right ones:
on *:SNOTICE:*Client connecting*:{
[color:red]echo -s Nick: $4 Host: $5[/color]
if ($regex($5,/~?[a-z]\d{3,4}@.*/i)) kill $4 proxy clone
}
Also, if you already have another SNOTICE line, you will have to add this new one into a different remotes file.
-genius_at_work