Fixed other uses of buttify.
This commit is contained in:
parent
2043f40329
commit
a6e430f7da
|
@ -24,7 +24,7 @@ sub on_privmsg {
|
|||
return 0 if ($text =~ /^!|^http:\/\/\S+$|butt|^\W+$/i);
|
||||
|
||||
my @words = split(/\s+/, $text);
|
||||
my @replaced_words = Butts::buttify(@words);
|
||||
my @replaced_words = Butts::buttify("butt", @words);
|
||||
my $replaced_text = join(" ", @replaced_words);
|
||||
|
||||
unless ($text eq $replaced_text) {
|
||||
|
|
|
@ -8,7 +8,7 @@ BEGIN { use_ok('Butts', qw(buttify)); }
|
|||
can_ok('Butts', qw(buttify));
|
||||
|
||||
for (1 .. 10) {
|
||||
my @sample = buttify(qw(The rain in Spain falls mainly on the plain.));
|
||||
my @sample = buttify("butt", qw(The rain in Spain falls mainly on the plain.));
|
||||
{
|
||||
local $" = ' ';
|
||||
print "@sample\n";
|
||||
|
|
Loading…
Reference in New Issue