#!/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 2>&1 > /dev/null &
else
	exec $SB_PLAYER $FILE 2>&1 > /dev/null &
fi
