Hi again blush
erm we have users who join channels and msg the channel like SPAM SPAM SPAM etc like a 100 times so i made this pathectic attempt to script a protection and would like some advice and maybe a better code for it etc.

Code:
  ON @*:TEXT:*:#: {
  if $len($strip($1-)) > 45 {
    var %lol = $gettok($1-,4,32)
    if $gettok($1-,5,32) == %lol) && $gettok($1-,8,32) == %lol) && $gettok($1-,15,32) == %lol) {
      ban -k # $nick 3 SPAMMER
    }
  }
}


thanks alot