tglogo.png
0 LIKES

Snippet


Easy Caps & Punctuation Protection by Charlatan

In Category General IRC Posted by Snippets On 12/07/23

Easy Caps and Punctuation Protection without warning...
Never use it because is a really stupid protection..
Use it or rip it, do whatever you want..
/*
01000011 01101000 01100001 01110010 01101100 01100001 01110100 01100001 01101110                                                                                  
*/

on @!*:text:*:#:if (%Cap. [ $+ [ # ] ] = si) { Capunkick $strip($1-) } 
on @!*:action:*:#:if (%Cap. [ $+ [ # ] ] = si) { Capunkick $strip($1-) }
alias -l Capunkick {
  if ($nick(#, $nick, '.@)) halt
  if ($len($strip($1-) >= 10)) && ($regex($strip($1-),/([[:punct:]])|[A-Z]/g) >= 60) flood
  halt
}
alias -l flood {
;Put whatever you want here.. the others Floods protection you can link it to this alias
}
Menu channel {
-
Protection
.$Iif(%Cap. [ $+ [ # ] ] == si, $Style(1)) Caps & Punct. Protection: {
    Set %Cap. [ $+ [ # ] ] $Iif(%Cap. [ $+ [ # ] ] == si, no, si)
    Echo -at * 0Caps & Punct. Protection $Iif(%Cap. [ $+ [ # ] ] == si, Activated, Desactivated)
  }
}
-   


Comments 0


Please note that on our website we use cookies necessary for the functioning of our website, cookies that optimize the performance. To learn more about our cookies, how we use them and their benefits, please read our Cookie Policy.
I Understand