Originally Posted By: RusselB
Not regex, but
Code:
on @*:text:*:#:{
  var %a = 1, %b = $0
  while %a <= %b {
    if $len($gettok($1-,%a,32)) => 100 {
      ban -k $chan $nick 100+ characters in the first word
      %a = %b
    }
  inc %a
}



Your Code is working on channel not working on pvt i need both so i tried this but didnt work could tell me why ?? for fix this up for me thankS.
Code:
on @*:text:*:*:{
  var %a = 1, %b = $0
  while %a <= %b {
    if ($len($gettok($1-,%a,32)) >= 100) {
      .ban -k $chan $nick 100+ characters in the first word
      %a = %b
    }
    inc %a
  }
}