diff --git a/triggers/bye/bye.sh b/triggers/bye/bye.sh index 9db35bf..0244210 100755 --- a/triggers/bye/bye.sh +++ b/triggers/bye/bye.sh @@ -1,13 +1,15 @@ [ -f functions.sh ] && source functions.sh # All names to match are completely lowercase. +exitName="${1%% *}" + case "${1,,}" in storm_dragon) -msg "$2" "NOOOOOOOOOO!!! $1: come back!!!" +msg "${2%% :*}" "NOOOOOOOOOO!!! $1: come back!!!" ;; *) bye=( "Bye $1." "Alas $1, you will be missed." ) -msg "$2" "${bye[$(($RANDOM % ${#bye[@]}))]}" +msg "${2%% :*}" "${bye[$(($RANDOM % ${#bye[@]}))]}" esac