and then watch as that floods the channel if it finds 50 files lol

Edit: This will play a random file from the results if any.
Code:
alias mp3.search {
  if (!$window(@mp3.search)) window -lh @mp3.search
  clear @mp3.search
  var %f = $findfile(%mpegdir,$+($1-,.mp3),0,@mp3.search)
  if (!%f) return
  var %file = $line(@mp3.search,$rand(1,%f))
  if (($active ischan) || ($query($active))) describe $active is playing: $nopath(%file)
  else echo -a Playing: $nopath(%file)
  splay $+(",%file,")
}

Last edited by JoeDaddy; 24/01/05 03:08 PM.