Advertisement
westor

Flood Protection for Dune2K v1.4

May 19th, 2020
1,997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.80 KB | None | 0 0
  1. alias -l chans { return #channel }
  2. alias -l flood_seconds { return 6 }
  3. alias -l flood_times { return 3 }
  4.  
  5. ON @*:TEXT:*:$($chans): {
  6.   inc $+(-eu,$flood_seconds) $+(%,flood,_,$nick,_,times) 1
  7.  
  8.   var %t = $evalnext($+(%,flood,_,$nick,_,times))
  9.  
  10.   if (%t >= $flood_times) {
  11.     inc -e $+(%,flood,_,$nick,_,warns) 1
  12.  
  13.     var %w = $evalnext($+(%,flood,_,$nick,_,warns))
  14.  
  15.     if (%w == 1) { ban -u300 $chan $nick 3 | describe $chan Has muted $nick (This is your $ord(%w) warning, 5 minutes ban for flooding!) }
  16.     if (%w == 2) { ban -u600 $chan $nick 3 | describe $chan Has muted $nick (This is your $ord(%w) warning, 10 minutes ban for flooding!) }
  17.     if (%w >= 3) { describe $chan Has muted $nick (This is your $ord(%w) warning, 30 minutes ban for flooding!) | ban -ku1800 $chan $nick 3 Banned! }
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement