Jethro commented on a Page, Kick Sparky for saying '0'  -  Jul 24, 2010

miniCruzer, you don't need the /i, /g modifier (there is no uppercase or lowercase for a number anyway...the /g modifier is to match a string multiple times. The way you have it only requires one...and you have the regex matched mainly for the number zero as is, hence the caret and dollar sign used), and the $me isop # can be substituted by a @ prefix:

on @$*:text:/^0$/S:#:{
  if ($nick == sparky) {
    if (%score == 16) {
      .onotice # I've kicked Sparky $v1 times for saying '0'
      unset %score
    }
    else {
      inc %score
      kick # $nick +1 for $me $+ ! My score: %score
    }
  }
}
 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.