Small fix to the spin module to make it work better.

This commit is contained in:
Storm Dragon 2020-07-30 00:45:53 -04:00
parent e93644f874
commit c4fc8c308e

View File

@ -4,9 +4,10 @@ userNick="$1"
shift
chan="$1"
shift
spin="${*// /}"
message="${*}"
spin="${message##*[[:space:]]}"
message="$spin $spin $spin $spin "
message="${message} $spin $spin $spin "
if [[ "$spin" =~ [aeiou].$ ]]; then
for i in $(seq 10) ; do
spin+="${spin: -1}${spin: -1}"