Majeye

mIRC - LineCount / prevents your bot from getting banned

Feb 12th, 2015
447
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias LineCount {
  2.   if (!%LineCount) { set %LineCount 0 }
  3.   if (!%LineTimer) { set %LineTimer $uptime }
  4.   inc %LineCount
  5.   echo -a %LineCount lines in $calc($uptime - %LineTimer) seconds
  6.  
  7.   if ($calc($uptime - %LineTimer) < 20 ) && (%LineCount >= 15) {
  8.     echo -a Limit reached
  9.     unset %Line*
  10.     set %LineLimit On
  11.     .timer 1 8 set %LineLimit Off
  12.   }
  13.  
  14.   elseif ($calc($uptime - %LineTimer) > 20 ) && (%LineCount < 15) {
  15.     echo -a Limit not reached, resetting counter
  16.     set %LineCount 1
  17.     set %LineTimer $uptime
  18.  
  19.   }
  20.  
  21.   elseif ($calc($uptime - %LineTimer) > 20 ) && (%LineCount >= 15) {
  22.     echo -a Limit not reached, resetting counter
  23.     set %LineCount 1
  24.     set %LineTimer $uptime
  25.  
  26.   }
  27. }
RAW Paste Data