try this
Code:
on *:text:*:?:{
  if ($query($nick) != $active) { echo -a moo }
}
on *:action:*:?:{
  if ($query($nick) != $active) { echo -a moo }
}


I didnt have the sound, so you just change the echo to your splay command