Wikked icon

Twitch caps protection

Wikked | PRO | 10/31/14 02:03:40 AM UTC | 0 ⭐ | 372 👁️ | Never ⏰ | []
mIRC |

530 B

|

None

|

0 👍

/

0 👎

on !*:text:*:#:{
  if ($nick isop #) { return }
  if ( $len($1-) >= 10 ) {
    if ( $calc($regex($1-,/[A-Z]/g) / $regex($1-,/[A-Z]/gi) * 100) >= 70 ) { 
      if !$istok(%caps.warned,$nick,32) {      
        msg $chan $nick -> stop typing in caps! first and last [warning]
        set -e %caps.warned $addtok(%caps.warned,$nick,32)
        .timer 1 300 remove.warned $nick
      }
      else { 
        msg # .timeout $nick 1
      }
    }
  }
}
 
alias -l remove.warned {
  set -e %caps.warned $remtok(%caps.warned,$1,1,32)
}

Comments