Advertisement
westor

Text Flood Protection for Kendy v1.1

Jul 16th, 2020
1,362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.80 KB | None | 0 0
  1. ON @*:TEXT:*:#: {
  2.   if ($nick !isreg $chan) { return }
  3.  
  4.   inc -eu3 $+(%,flood,_,$chan) 1
  5.   set -eu3 $+(%,flood,_,$chan,_,nick,_,$nick) $nick
  6.  
  7.   if ($evalnext($+(%,flood,_,$chan)) == 3) {
  8.     unset $+(%,flood,_,$chan)
  9.  
  10.     mode $chan +impsRCM
  11.     .timer 1 360 mode $chan -impsRCM
  12.  
  13.     bk_all $chan
  14.   }
  15.  
  16. }
  17.  
  18. alias -l bk_all {
  19.   if (!$1) && ($me !ison $1) && ($me !isop $1) { return }
  20.  
  21.   var %t = $var($+(flood,_,$1,_,nick,_,*),0)
  22.  
  23.   if (!%t) { return }
  24.  
  25.   var %i = 1
  26.   while (%i <= %t) {
  27.     var %v = $var($+(flood,_,$1,_,nick,_,*),%i)
  28.     var %n = $gettok(%v,4,95)
  29.  
  30.     if (!%v) && (!%n) { goto next }
  31.     if (%n !ison $1) || (%n !isreg $1) { unset $+(%,flood,_,$1,_,nick,_,%n) | goto next }
  32.  
  33.     ban -ku300 $1 %n 2 Text Flooding
  34.  
  35.     unset $+(%,flood,_,$1,_,nick,_,%n)
  36.  
  37.     :next
  38.     inc %i
  39.   }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement