Fixed a bug with the bye message if person quit with an exit message.
This commit is contained in:
parent
1e7bd21992
commit
43fefe8a89
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user