aliases (test for last file name) - 23/12/05 09:03 PM
ok basicly there should be a number of files names with
name001
name002
etc after them now i make a program to see how many there are or what the last one was.
now in remote
all looks fine
now why do i get this back then?
notice - there are of files available
name001
name002
etc after them now i make a program to see how many there are or what the last one was.
Code:
gunznum { set %filenum 002 set %keepgoing 1 while (keepgoing == 1 ) { if ("W:\gcapture\gunz $+ %filenum == $null) { set %returnv $calc(%keepgoing - 1) return returnv break set %keepgoing 0 } else { inc filenum } } }
now in remote
Code:
on *:TEXT:request*:?: { if ($2 == gunz) { notice $nick there are $gunznum of files available } }
all looks fine
now why do i get this back then?
notice - there are of files available