alias count_files {
; $count_files(<wildcard>)
; //echo -a $count_files(LethPhaos*.mrc)
if ($1) {
; ^ ensure $1 is present
var %a = 0
; ^ setup a local variable with 0 as it's value
.echo -q $findfile($mircdir,$1,0,inc %a $lines($shortfn($1-)))
; ^ search through the mIRC directory for files matching the $1 parameter you supplied. Read up on $findfile for depths. Then increments %a with the number of lines of each file found
return $iif(%a,%a,n/a)
; ^ returns the total number of lines from all files found
; ^ the $iif just ensures %a is present, if not, returns n/a
}
}