1) Go into your address book and add your friends there in your Notify list. (Alt-B > Notify)
2) Press Alt-R, go to File > New. Add this:
on *:notify: {
.splay yoursound.wav
}
Just replace "yoursound.wav" with whatever sound you want played. This will play the sound when they join IRC. If you want a sound when they leave, do the same thing, but replace notify with unotify.
If you want it just for when they join your channel, you can do:
on *:join:#yourchan: {
if ($level($nick) == friend) {
.splay yoursound.wav
}
}
For this last one to work, you need to add your friends to your user list (Alt-R > Users) in this format:
friend:friend's_nick
Example:
friend:riamus
Note that you can also do this by address rather than nick if you want. Just replace any instance of $nick with $address($nick,6) . If you're using the last code, you'll need to put the address into the Alt-R>Users instead of the nick:
Example:
friend:nick!*user@host.com
If you wanted a different kind of $address, type /help $address and look at the possible numbers to use instead of "6". Just make sure you put the right $address format into the Users tab or it won't do anything.