on !@*:JOIN:#:{
;checks for anything ending in 4 numbers, typically a proxy using clonesx
;you don't need to check the start, a nick is invalid with a numer at the start
if ($regex($nick,\d{4}$)) {
mode $chan +b $nick
}
}
depending on ircd version / type u could use filter to detect exessive use of digits in nick and anti random module wich is available for unrealircd and inspircd