This script can further be improved a bit from this:
on :join:#:{
if (%aguest) && (Guest iswm $nick) && ($right($nick,5) isnum) {
if $me isop # {
ban -ku300 # $nick 5 Autokick Guest Nicks
}
}
}To this:
on @*:JOIN:#: {
if (%aguest) && ($regex($nick,/\A(guest\d{5})/iS)) {
ban -ku300 # $nick 5 Autokick Guest Nicks
}
}
Where @ means $me isop # and by using regex, it's shorter than using iswm operator and $right() identifier.