dcc snippet - 04/06/08 11:32 PM
this little snippet also goes in aliases - and i am wondering if its possible to fix the timing on this.
thanks again for any help on this
Code:
(aliases) ryder.dcc.get { var %a = 1 if (!$get(0)) { say 8D7CC 8G7ets: 15[14 No dcc gets in progress. 15]5 } else { while (%a <= $get(0)) { say 15D10CC 15G10ets14: 9[3 $get(%a).file 9] 15F10rom14:4 $get(%a) $+ 6. 15F10ile 15S10ize14: 9[3 $bytes($get(%a).size,m).suf 9] 15C10ompleted 15S10o 15F10ar14:7 $get(%a).pc $+ % $+ 6. 15C10urrent 15S10peed14: 9[3 $+($bytes($get(%a).cps,k).suf,/sec) 9] 15T10ime 15L10eft14: 9[3 $duration($calc(($get(%a).size / $get(%a).cps) - $get(%a).secs)) 9]5 inc %a } } } ryder.dcc.send { var %a = 1 if (!$send(0)) { say 8D7CC 8S7ends: 15[14 No dcc sends in progress. 15]5 } else { while (%a <= $send(0)) { say 15D10CC 15S10ends14: 9[3 $send(%a).file 9] 6To4 $send(%a) $+ 6. 15F10ile15S10ize14: 9[3 $bytes($send(%a).size,m).suf 9] 6With7 $send(%a).pc $+ % 6Complete. 15S10peed14: 9[3 $bytes($send(%a).cps,k).suf 9] 15T10ime 15L10eft14: 9[3 $duration($calc(($send(%a).size - $send(%a).sent) / $send(%a).cps)) 9]5 inc %a } } } (popups) ·IRC .·DCC Gets: ryder.dcc.get .·DCC Sends: ryder.dcc.send
thanks again for any help on this