mIRC Homepage
Posted By: hoaxer dcc file-size check - 06/05/03 12:13 PM
Some feature to set a file-size check when you have "auto-get-file" on.

So that people can't send you files from 100MB when you are away from home.

It would be a nice future I think. shocked
Posted By: hoaxer Re: dcc file-size check - 06/05/03 01:37 PM
Or a new event and some $vars shocked

ON DCC => When someone is trying to send you a file
$dcc_file => The file that someones send you
$dcc_file_size => The size of file that someones send you

And that you can do a script such like

Code:
on *:DCC:*:{
  if $dcc_file_size > 100000 {
    dcc reject $dcc_file
  }
  else {
    echo -at FileSize is OK
  }
}
 


I don't know how I can fix this otherwise ?
there is no RAW code for sending DCC I think confused
Posted By: theRat Re: dcc file-size check - 06/05/03 01:49 PM
ctcp *:DCC SEND *: if( $6 > 104857600 ) halt

or smthng?
Posted By: Nimue Re: dcc file-size check - 06/05/03 03:23 PM
The file size might not be $6 :tongue:
Code:
ctcp *:DCC SEND *:{
  if $gettok($1-,-1,32) > 104857600 { dcc reject $dcc_file }
  else { echo -at FileSize is OK }
}
You might want to put in an $away check or something.
Posted By: theRat Re: dcc file-size check - 06/05/03 04:09 PM
or smthng... smirk
Posted By: hoaxer Re: dcc file-size check - 06/05/03 10:51 PM
Ok THX a lot laugh cool grin

You are all great! wink
© mIRC Discussion Forums