Either way..
This is correct..
Code:
on 1:JOIN:#Channel: { if ($nick != $me) { splay file.wav } }

This is also correct..
Code:
on 1:JOIN:#Channel: { 
  if ($nick != $me) { 
    splay file.wav 
  } 
}