elseif ( @find == $1 ) {
set %search = $+(*,$replace($2-,$chr(32),$chr(42)),*)
echo -a Searching for: %search
if ( $findfile($lydir,%search,0) > 10 ) {
notice $nick Sorry $upper($nick) $+ , but i have more that 5 matches, try grabbing my list with: @ $+ $me
}
elseif ( $findfile($lydir,%search,0) < 10 ) && $findfile($sound(mp3),%search,0) != 0 ) {
senote
}
elseif ( $findfile($lydir,%search,0) == 0 ) { notice $nick Sorry $nick i have NO results for %search }
}
}
;=======================================================
alias senote {
var %count = 1
Notice $nick I have found $findfile($lydir,$+(*,%search,*),0) files for your query of: %search
while %count < 10 {
.echo -qa $findfile($lydir,$+(*,%search,*),0,timer 1 $count(%count + 1) notice $nick $+(!,$me) $nopath($1-))
inc %count
}
}