Advertisement
westor

JOIN + PART + JOIN Flood Protection for Debian v1.0

Oct 4th, 2020
2,383
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.12 KB | None | 1 0
  1. ON @!*:JOIN:#prova: {
  2.   if (!$chk_nick_chars($nick)) { return }
  3.  
  4.   if ($evalnext($+(%,joinflood_,$nick))) { ban -ku1800 $chan $nick 3 Join/Part Flood Protection! | unset $+(%,joinflood_,$nick) | return }
  5.  
  6.   set -eu30 $+(%,joinflood_,$nick) 1
  7. }
  8.  
  9. ON @!*:PART:#prova: {
  10.   if (!$chk_nick_chars($nick)) { return }
  11.  
  12.   inc -eu30 $+(%,joinflood_,$nick) 1
  13. }
  14.  
  15. alias -l chk_nick_chars {
  16.   if (!$1) { return }
  17.  
  18.   if ($len($1) < 10) { return 0 }
  19.  
  20.   if ($chr(95) isin $1) && ($count($1,$chr(95)) > 1) { return 1 }
  21.   if ($chr(45) isin $1) && ($count($1,$chr(45)) > 1) { return 1 }
  22.   if ($chr(96) isin $1) && ($count($1,$chr(96)) > 1) { return 1 }
  23.   if ($chr(94) isin $1) && ($count($1,$chr(94)) > 1) { return 1 }
  24.   if ($chr(124) isin $1) && ($count($1,$chr(124)) > 1) { return 1 }
  25.   if ($chr(95) isin $1) && ($count($1,$chr(95)) > 1) { return 1 }
  26.   if ($chr(91) isin $1) && ($count($1,$chr(91)) > 1) { return 1 }
  27.   if ($chr(93) isin $1) && ($count($1,$chr(93)) > 1) { return 1 }
  28.   if ($chr(123) isin $1) && ($count($1,$chr(123)) > 1) { return 1 }
  29.   if ($chr(125) isin $1) && ($count($1,$chr(125)) > 1) { return 1 }
  30.  
  31.   return 0
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement