]> git.99rst.org Git - irssi-scripts.irssi.org.git/commit
Fixed a bug: selects from all ans; and added ans.
authorBheesham Persaud <redacted>
Tue, 15 Sep 2015 23:05:29 +0000 (19:05 -0400)
committerBheesham Persaud <redacted>
Tue, 15 Sep 2015 23:30:03 +0000 (19:30 -0400)
commit36edced7eeb1bfd25466f9b030d770f9df4da983
treed98b3d5e1ef98242cf0de5b1c9de00e994afc799
parent17e097d2016669514cb45d6a42eb21da7b389d22
Fixed a bug: selects from all ans; and added ans.

The 8-ball script did not select from all possible answers, as `rand`
was not passed the size of all possible answers.

Fixed by changing the variable `answer` into an array and by selecting a
random index.
scripts/8-ball.pl
git clone https://git.99rst.org/PROJECT