dcc send connecting - 15/02/05 05:00 AM
How can i tell when a dcc send connects?
;alias -l Debugger { } alias -l Debugger { echo -st Debug Point <scriptname> : $1- if ($1 == H) && ($?!="Halt") { halt } if ($1 == P) { echo -st Paused here $?="Paused Here Comments?" } }
; ;usage $start.watch.for.dcc.send(nick,filename,channel,message) ;usage !.echo -q $start.watch.for.dcc.send(nick,filename,channel,message) ;usage /start.watch.for.dcc.send nick filename channel message [ this option limited to filename having no spaces ] ; alias start.watch.for.dcc.send { var %timername = $+(WFDS.,$ticks,.,$rand(100001,199999)) set -u61 % $+ [ %timername ] $+ .nick $1 set -u61 % $+ [ %timername ] $+ .file $2 set -u61 % $+ [ %timername ] $+ .chan $3 set -u61 % $+ [ %timername ] $+ .mess $4- .timer $+ %timername 60 1 watch.for.dcc.send %timername } ; alias -l watch.for.dcc.send { var %nick = [ % $+ [ $1 $+ .nick ] ] var %file = [ % $+ [ $1 $+ .file ] ] var %i = $send(%nick,0) while (%i) { if (($send(%nick,%i).file == %file) && ($send(%nick,%i).status == active)) { var %chan = [ % $+ [ $1 $+ .chan ] ] var %mess = [ % $+ [ $1 $+ .mess ] ] msg %chan %mess .timer $+ $1 off unset % $+ $1 $+ .* halt } dec %i } }