#!/bin/sh

FILE=/usr/share/sounds/warning.wav

if [ "$1" == "irssi" ] || [ "$1" == "xchat" ] ; then
	FILE=/usr/share/sounds/email.wav
fi

# use the player specified in $SB_PLAYER if defined

if [ -z "$SB_PLAYER" ]; then
	exec esdplay $FILE
else
	exec $SB_PLAYER $FILE
fi
