Help with spaces in the filename - 28/02/03 02:26 AM
The problem I have with this script is when it try's to regrab a file with spaces in the title name. The script replaces the spaces with underscores. Istead of the true file name. I would appreciate any imput on fixing the problem.
Code:
on *:getfail:*:{ if ($window(@c2req) == $null) goto F if ($c2.readini(re^re) != 1) goto E if ($c2.readini(ON) != 1) goto E var %reqet = $reqet?($nick,$nopath($filename)) var %fname = $gett($nopath($filename)) var %tt = $nopath($filename) $+ $chr(144) $+ $nick $+ $chr(144) $+ * var %nick = $nick var %fline = $fline(@c2reqFF,%tt,1,0) if (%fline) %nick = $gettok($line(@c2reqFF,%fline),3,144) /e ccomchan: $ccomchan(%nick) if ($ccomchan(%nick)) && ($server) && (%reqet > 0) { var %del = $c2.readini(reqdel) %del = $iif( (%del) && (%del isnum 0-120) , %del , 0) if (%del == 0) goto ADD .timer -o 1 %del c2req.req $ccomchan(%nick) %nick %fname /e Waiting $u(%del) seconds before reRequesting $u(%fname) goto E :ADD var %t1 = $u(%nick) ( $+ $nick $+ ) msg $ccomchan(%nick) ! $+ %nick %fname /e Rerequesting $u(%fname) from $iif( %nick != $nick , %t1 , $u($nick) ) after receiving $u(%reqet) bytes } else { iline @c2req 1 ! $+ $nick $+ $chr(32) $+ %fname var %t1 = $u(%nick) $+ ( $+ $nick $+ ) /e Can't Rerequest from $nick now, so 've add $u(%fname) to the request list } :E if ($window(@c2reqFF) == $null) goto F var %temp = $nopath($filename) $+ $chr(144) $+ $nick $+ $chr(144) $+ * var %fline = $fline(@c2reqFF,%temp,1,0) if (%fline) dline @c2reqFF %fline :F delt $nopath($filename) }