Code:
on @+1:TEXT:*:#: {
  if ($nick isin %baduser) {
    var %swearcount = 1
    while ($gettok(%swears,0,44) >= %swearcount) {
      if ($gettok(%swears,%swearcount,44) isin $1-) {
        ban -u300 # $nick 3
        kick # $nick No swearing in here, you were warned before!
      }
      inc %swearcount
    }
  }
  elseif ($nick !isin %baduser) {
    var %swearcount = 1
    while ($gettok(%swears,0,44) >= %swearcount) {
      if ($gettok(%swears,%swearcount,44) isin $1-) {
        .notice $nick You have said a bad word on the channel. If you do that again you'll be punished.
        set %baduser %baduser $+ $chr(44) $+ $nick
        [color:red].timerswear 1 3600 /unset %baduser[/color]
      }
      inc %swearcount 
    }
  }
}


I've included that timer to unset the %baduser variable within 1 hour after its set, but its totally optional.
Also, those variable can be changed.. i just used them because they are already set in my swear kick, so i used them smile

Hope it helps wink


"All we are saying is give peace a chance" -- John Lennon