Jethro commented on a Page, Anti guest nicks  -  Nov 25, 2009

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.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.