Advertisement
SaNCaK

mIRC Notice protection

Jul 31st, 2020
2,846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.75 KB | None | 0 0
  1. on *:NOTICE:*:*: {
  2.   if (%noticeprotection) {
  3.     if (%notice. [ $+ [ $wildsite ] ] == $null) {
  4.       set -u8 %notice. [ $+ [ $wildsite ] ] 1
  5.       RETURN
  6.     }
  7.     else { inc %notice. [ $+ [ $wildsite ] ] }
  8.     if (%notice. [ $+ [ $wildsite ] ] > 5 && %notice.check == $null) {
  9.       set -u6 %notice.check 1
  10.       .ignore -nu45 $wildsite
  11.       echo -a  7>4Attention7< Notice flood from $wildsite - Counter Measures Taken : Ignoring notices for 45secs...
  12.     }
  13.   }
  14. }
  15.  
  16. menu menubar,channel {
  17.   $iif(%noticeprotection != $false,[On],[Off]) Notice protection:{
  18.     set %noticeprotection $iif(%noticeprotection == $false,$true,$false)
  19.     echo -a 7>4Attention7< 14Notice Protection is now 7 $iif(%noticeprotection == $true,ACTIVE,INACTIVE)
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement