Jethro commented on a Page, Anti-Repeat  -  Aug 22, 2010

Oh my bad. I thought you were laughing when you said that...I should have read your whole sentence closely. :p

This should do it:

on @*:text:*:#:{
  var %e = lol|lm(ao|fao)|haha
  if (!$nick(#,$nick,oh)) && (!$regex($1-,/( $+ %e $+ )/iS)) {
    if ($readini(logs.ini,$nick,last) == $strip($1-)) {
      if ($readini(logs.ini,$nick,warns) == $null) {
        writeini -n logs.ini $nick warns 0
      }
      writeini -n logs.ini $nick warns $calc($readini(logs.ini,$nick,warns) + 1)
      if ($readini(logs.ini,$nick,warns) == 4) {
        .kick $chan $nick Repetitive messages
      }
    }
    if ($readini(logs.ini,$nick,last) != $strip($1-)) {
      writeini -n logs.ini $nick warns 0
    }
    writeini -n logs.ini $nick last $strip($1-)
  }
}
 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.