]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Reply.pl
converted %{$blah{$blah}} to %{ $blah{$blah} }
[infobot.git] / src / Factoids / Reply.pl
index 5e219f4817b884860971297be027c539174cdcdc..1c470c4ca98c1a8584616e20adb273f436c401a8 100644 (file)
@@ -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/;
        }