All pastes #471607 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-05 00:17 UTC
rendered paste body
menu channel,query,status {
  <switch name>
  .<name> ( $+ %<var1>auto $+ )
  ..On: set %<var1>auto ON
  ..Off: set %<var1>auto OFF
}


on *:TEXT:*:#: {
  if ($chan = <chan>) && ($nick = <botnick>) { 
    if (COMPLETE isin $strip($1)) && (<pre-type>: == $strip($3)) && (%<var>auto == ON) { 
      var %<var2>all $strip($5)
      if ($regex(%<var2>all,/<skiplist>/i) == 1) { halt }
      elseif ($read(predb.txt, w, * $+ $strip($5) $+ *)) {
        var %y $read(predb.txt, $readn)
        var %z $gettok(%y,-1,32)
        if ($calc($ctime - $eval(%z)) <= <max time after pre>) { 
          .dll rushmirc.dll RushScript RushApp.FTP.Transfer(0, 'TVL', ' $+ /TV-XVID/ $+ ', ' $+ $strip(%tvall) $+ ', 'PHOENiX', ' $+ /TV-XVID/ $+ ', ' $+ $strip(%tvall) $+ ', RS_LOGOUT or RS_DIRDES or RS_DIRSRC or RS_APPEND, '', '', '', '', '([^\w]*100%[^\w]*)|([^\w]*-\sCOMPLETE\s\)[^\w]*)|([^\w]*-\sCOMPLETE\s-[^\w]*)',50,50,0,0,0,0,0)  
        }
      }
    }
  }
}