Simple dcc get & dcc send script
alias 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] 6From4 $get(%a) $+ 6. 15F10ile15S10ize14: 9[3 $round($calc($get(%a).size / 1048576),2) $+ MB 9] 6With7 $get(%a).pc $+ % 6Complete. 15S10peed14: 9[3 $round($calc($get(%a).cps / 1024),2) $+ kb/s 9] 15T10ime 15L10eft14: 9[3 $duration($calc(($get(%a).size - $get(%a).rcvd) / $get(%a).cps)) 9]5
inc %a
}
}
}
alias 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 $round($calc($send(%a).size / 1048576),2) $+ MB 9] 6With7 $send(%a).pc $+ % 6Complete. 15S10peed14: 9[3 $round($calc($send(%a).cps / 1024),2) $+ kb/s 9] 15T10ime 15L10eft14: 9[3 $duration($calc(($send(%a).size - $send(%a).sent) / $send(%a).cps)) 9]5
inc %a
}
}
}
menu channel {
IRC
.DCC Gets: ryder.dcc.get
.DCC Sends: ryder.dcc.send
}