All pastes #419064 Raw Edit

Something

public text v1 · immutable
·published 2007-04-01 00:50 UTC
rendered paste body
on *:TEXT:#: {
  if ($nick isreg $chan) {
    if (!%caps. [ $+ [ $nick ] ]) {
      if ($len($1-) > 10) && ($round($calc($regex($1-,/[A-Z]/g) / $len($remove($1-,$chr(32))) * 100),0) > 66) {
        notice $nick Drop the caps 4- $+($v1,%) used 123
        set %caps. [ $+ [ $nick ] ] 1
      }
      elseif (%caps. [ $+ [ $nick ] ] == 1) {
        kick $chan $nick Drop the caps 4- $+($v1,%) used 123
        inc %caps. [ $+ [ $nick ] ]
      }
      elseif (%caps. [ $+ [ $nick ] ] == 2) {
        ban -ku120 $chan $nick 2 Drop the caps 4- $+($v1,%) used 12[2-Minute Ban]3
        unset %caps. [ $+ [ $nick ] ]
      }
    }
  }
}