Small fix to the spin module to make it work better.
This commit is contained in:
parent
e93644f874
commit
c4fc8c308e
@ -4,9 +4,10 @@ userNick="$1"
|
|||||||
shift
|
shift
|
||||||
chan="$1"
|
chan="$1"
|
||||||
shift
|
shift
|
||||||
spin="${*// /}"
|
message="${*}"
|
||||||
|
spin="${message##*[[:space:]]}"
|
||||||
|
|
||||||
message="$spin $spin $spin $spin "
|
message="${message} $spin $spin $spin "
|
||||||
if [[ "$spin" =~ [aeiou].$ ]]; then
|
if [[ "$spin" =~ [aeiou].$ ]]; then
|
||||||
for i in $(seq 10) ; do
|
for i in $(seq 10) ; do
|
||||||
spin+="${spin: -1}${spin: -1}"
|
spin+="${spin: -1}${spin: -1}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user