X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FFactoids%2FReply.pl;h=1c470c4ca98c1a8584616e20adb273f436c401a8;hb=0e3df27228cf790fad3c3d9b6496db63c3ece37e;hp=5e219f4817b884860971297be027c539174cdcdc;hpb=a8b8b641d67103ac84e5d52c4ce8e1072aee4a43;p=infobot.git diff --git a/src/Factoids/Reply.pl b/src/Factoids/Reply.pl index 5e219f4..1c470c4 100644 --- a/src/Factoids/Reply.pl +++ b/src/Factoids/Reply.pl @@ -139,7 +139,7 @@ sub getReply { # result is random if separated by '||'. # rhs is full factoid with '||'. if ($mhs eq "is") { - $reply = &getRandom(keys %{$lang{'factoid'}}); + $reply = &getRandom(keys %{ $lang{'factoid'} }); $reply =~ s/##KEY/$lhs/; $reply =~ s/##VALUE/$result/; } else { @@ -200,7 +200,7 @@ sub getReply { $reply =~ s/\$randpercentage/$randp/g; # ??? # randnick. if ($reply =~ /\$randnick/) { - my @nicks = keys %{$channels{$chan}{''}}; + my @nicks = keys %{ $channels{$chan}{''} }; my $randnick = $nicks[ int($rand*$#nicks) ]; s/\$randnick/$randnick/; }