mIRC Home    About    Download    Register    News    Help

Print Thread
#22726 06/05/03 12:13 PM
Joined: Dec 2002
Posts: 10
H
hoaxer Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2002
Posts: 10
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

#22727 06/05/03 01:37 PM
Joined: Dec 2002
Posts: 10
H
hoaxer Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2002
Posts: 10
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

Last edited by hoaxer; 06/05/03 01:39 PM.
#22728 06/05/03 01:49 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
ctcp *:DCC SEND *: if( $6 > 104857600 ) halt

or smthng?


Code:
//if ( khaled isgod ) echo yes | else echo no
#22729 06/05/03 03:23 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
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.

#22730 06/05/03 04:09 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
or smthng... smirk


Code:
//if ( khaled isgod ) echo yes | else echo no
#22731 06/05/03 10:51 PM
Joined: Dec 2002
Posts: 10
H
hoaxer Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2002
Posts: 10
Ok THX a lot laugh cool grin

You are all great! wink


Link Copied to Clipboard