Advertisement
Seb

flood protection (/silence)

Seb
Feb 12th, 2012
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.97 KB | None | 0 0
  1. ;Simple personal flood protection using /SILENCE
  2. ;This does not work on every network
  3. ;Tested on Undernet
  4. ;You don't have to edit it. Default should be ok.
  5. ;Source: http://pastebin.com/u/Seb
  6.  
  7. on *:open:?:*:{
  8.   inc -u3 %msg.floodpro 1
  9.   if (%mfp >= 3) {
  10.     echo -at **[###] Silence enabled 30seconds (text flood)
  11.     silence +*!*@* | timer-silence 1 30 silence -*!*@* | close -m
  12.   }
  13. }
  14.  
  15. on *:notice:*:?:{
  16.   if (%notice.floodpro.nick != $nick) {
  17.     inc -u3 %notice.floodpro 1
  18.   }
  19.   if (%notice.floodpro == 3) {
  20.     echo -as Notice Flood Detected, Activating Silence for 30 seconds.
  21.     silence +*!*@* | timerunsilence 1 30 silence -*!*@*
  22.   }
  23.   set %notice.floodpro.nick $nick
  24. }
  25.  
  26. ctcp *:*:?:{
  27.   if (%ctcp.floodpro.nick != $nick) {
  28.     inc -u3 %ctcp.floodpro 1
  29.   }
  30.   if (%ctcp.floodpro == 3) {
  31.     echo -as CTCP Flood Detected, Activating Silence for 30 seconds.
  32.     silence +*!*@* | timerunsilence 1 30 silence -*!*@*
  33.   }
  34.   set %ctcp.floodpro.nick $nick
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement